Ready to clone and code.

This commit is contained in:
simon
2025-04-02 20:06:02 +00:00
committed by github-actions[bot]
parent c9a9b12831
commit a49ea792cc
19 changed files with 28 additions and 119 deletions

View File

@@ -0,0 +1,35 @@
using CommandLine;
class Program
{
public class Options
{
[Option('v', "verbose", Required = false, HelpText = "Set output to verbose messages.")]
public bool Verbose { get; set; }
}
static void Main(string[] args)
{
Parser.Default.ParseArguments<Options>(args)
.WithParsed<Options>(o =>
{
if (o.Verbose)
{
Console.WriteLine($"Verbose output enabled. Current Arguments: -v {o.Verbose}");
Console.WriteLine("Quick Start Example! App is in Verbose mode!");
}
else
{
Console.WriteLine($"Current Arguments: -v {o.Verbose}");
Console.WriteLine("Quick Start Example!");
}
EntryPoint(o);
});
}
static void EntryPoint(Options o)
{
Console.WriteLine("Hello world!");
}
}