Files
SabreTools/Headerer/Features/Version.cs
Matt Nadareski 1f0637cc91 Split Headerer back out
This is in anticipation of making it a fully independent program. Currently, the only links to the rest of SabreTools are a few usability libraries that are mostly unnecessary. The main logic now lives as a separate library in SabreTools.Skippers.
2024-10-23 22:04:52 -04:00

34 lines
878 B
C#

using System.Collections.Generic;
using SabreTools.Core;
using SabreTools.Help;
namespace Headerer.Features
{
internal class Version : BaseFeature
{
public const string Value = "Version";
public Version()
{
Name = Value;
Flags.AddRange(["v", "version"]);
Description = "Prints version";
_featureType = ParameterType.Flag;
LongDescription = "Prints current program version.";
// Common Features
AddCommonFeatures();
}
public override bool ProcessFeatures(Dictionary<string, Feature?> features)
{
// If the base fails, just fail out
if (!base.ProcessFeatures(features))
return false;
logger.User($"Headerer version: {Globals.Version}");
return true;
}
}
}