Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Enumerable of Enum doesn't work if followed by Values #617

Copy link
Copy link
@usr-sse2

Description

@usr-sse2
Issue body actions

I have such options:

[Option("fm",  Separator=',', Default = new[] { FMode.S })]  
public IEnumerable<FMode> Mode { get; set; }
	 
[Option('q')]
public bool q { get;set; }
	 
[Value(0)]
public IList<string> Files { get; set; }

If I run my application with --fm D,C a.txt arguments, it says that option 'fm' is defined with a bad format. If I put any option between 'fm' and the value list, for example, --fm D,C -q a.txt, it is parsed successfully. You can check it in a fiddle: https://dotnetfiddle.net/yt5L9K

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.