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

How to access unbound arguments? #720

Copy link
Copy link
@MiloszKrajewski

Description

@MiloszKrajewski
Issue body actions

I would like to pass completely unbound unparsed arguments. From documentation I assumed combination of [Value] attribute add dash-dash should work, for example:

program verb -a 1 2 3 -b 5 6 7 -- ADDITION ARGUMENT COME HERE

yet it does not seem to be working:

[Verb("verb")]
public class Verb
{
	[Option('a')]
	public IEnumerable<int> A { get; set; };

	[Option('b')]
	public IEnumerable<int> B { get; set; };

	[Value(0)]
	public IEnumerable<string> More { get; set; }
}

I guess the problem is index 0 on Value, but it seems to be required?
How it supposed to work?

Thanks,

PS. I used EnableDashDash
PPS. Is it possible that it is working in general but not for verbs?
PPPS. It seems that More gets consumed by 'b' (dash dash is not a circuit breaker when parsing b)

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.