commandline icon indicating copy to clipboard operation
commandline copied to clipboard

Consider alternative syntax

Open The-Futurist opened this issue 8 years ago • 0 comments

Hi,

Consider this generic approach, I think it's better for developers, simpler pattern:

static void Main(string[] args) {
  
    var options = CommandLine.Parser.Default.ParseArguments<Options>(args);

    if (options.Available)
       // Values are available here
       if (options.Verbose) Console.WriteLine("Filename: {0}", options.InputFile);
 
}

just a thought...

The-Futurist avatar Sep 04 '17 15:09 The-Futurist