Example #1
0
        static void Main(string[] args)
        {
            var info = "Take a data file and create templated SQL";

            var cml = new CommandLineManager();

            cml.DisplayProductAndVersion()  // Take the Product name and version from AssemblyInfo.cs
            .DisplayBeforeDescription((o) => Console.WriteLine($"{info}{Environment.NewLine}"))
            .DisplayDescriptionOnNoOperation()
            .AddOption("f", "Pathed data file.", ProcessFile)
            .Execute(new[] { "-f", "C:\\Temp\\abc.text" });
        }