gsscoder/commandline

Good, except parsing doesn't work

kudorgyozo opened this issue · 1 comments

    [Option('s', "sources", Required = true,
      HelpText = "The sources")]
    public IEnumerable<string> Sources { get; set; }

        var options = new CommandLineOptions();
        var isValid = CommandLine.Parser.Default.ParseArguments<CommandLineOptions>(() => { return new CommandLineOptions(); }, args);

options.Source is null

Nevermind, it actually works.