Skip to content
This repository has been archived by the owner on Nov 16, 2022. It is now read-only.

Any possible to support string starts with "-" as parameter value? #85

Open
EmmaZhu opened this issue Nov 20, 2017 · 0 comments
Open

Any possible to support string starts with "-" as parameter value? #85

EmmaZhu opened this issue Nov 20, 2017 · 0 comments

Comments

@EmmaZhu
Copy link

EmmaZhu commented Nov 20, 2017

Following code throws an error of "Required argument missing for option: --include" with parse arguments "--include -", seems it doesn't recognize "-" as parameter value. I understand "-" is used as parameter prefix. Could you help to take a look whether there's any solution to let it recognize "-"?

            Option[] SampleOptions() => new Option[] {Option("--include",
                   "", // help here
                   ExactlyOneArgument().With(name: "Pattern"))};

            Parser Instance = new Parser(
                options: SampleOptions());
            ParseResult result = Instance.Parse(args);
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant