Skip to content

ParseArgumentsStrict overload gone? #441

Open
@Plasma

Description

@Plasma

Hey,

The documentation in the README says to use:

static int Main(string[] args) {
  var options = new Options();
  var isValid = CommandLine.Parser.Default.ParseArgumentsStrict(args, options);

However this ParseArgumentsStrict method is missing.

I've ended up having to do something like this?

var isValid = Parser.Default.ParseArguments<Options>(args);
if (isValid.Tag == ParserResultType.NotParsed)
    return 1;

Log.Info("Name: " + ((Parsed<Options>)isValid).Value.Name);

Is this how I'm supposed to now retrieve the Name property of Options class? Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions