diff --git a/RombaSharp/Features/Version.cs b/RombaSharp/Features/Version.cs index 273c7245..a9a649b2 100644 --- a/RombaSharp/Features/Version.cs +++ b/RombaSharp/Features/Version.cs @@ -15,7 +15,7 @@ namespace RombaSharp.Features Flags = new List() { "version" }; Description = "Prints version"; _featureType = ParameterType.Flag; - LongDescription = "Prints version."; + LongDescription = "Prints current program version."; Features = new Dictionary(); // Common Features diff --git a/SabreTools.Core/README.1ST b/SabreTools.Core/README.1ST index e2fa1da2..a340bd01 100644 --- a/SabreTools.Core/README.1ST +++ b/SabreTools.Core/README.1ST @@ -1182,6 +1182,9 @@ Features and Options: directory, if set). This flag enables users to write out to the directory that the DATs originated from. + v, version Prints version + Prints current program version. + ve, verify Verify a folder against DATs When used, this will use an input DAT or set of DATs to blindly check against an input folder. The base of the folder is considered the base diff --git a/SabreTools/Features/Version.cs b/SabreTools/Features/Version.cs new file mode 100644 index 00000000..d0b5d10d --- /dev/null +++ b/SabreTools/Features/Version.cs @@ -0,0 +1,35 @@ +using System.Collections.Generic; + +using SabreTools.Core; +using SabreTools.Help; + +namespace SabreTools.Features +{ + internal class Version : BaseFeature + { + public const string Value = "Version"; + + public Version() + { + Name = Value; + Flags = new List() { "v", "version" }; + Description = "Prints version"; + _featureType = ParameterType.Flag; + LongDescription = "Prints current program version."; + Features = new Dictionary(); + + // Common Features + AddCommonFeatures(); + } + + public override bool ProcessFeatures(Dictionary features) + { + // If the base fails, just fail out + if (!base.ProcessFeatures(features)) + return false; + + logger.User($"SabreTools version: {Prepare.Version}"); + return true; + } + } +}