Skip to content

Multi-instance option not supported #899

Open
@RomanSoloweow

Description

@RomanSoloweow
public class Arguments
{
    [Option("arg1", Required = true)]
    public string Arg1 { get; set; }

    [Option("arg2", Required = true)]
    public IEnumerable<string> Arg2 { get; set; }
}

When i call:

// In console: --arg1=test --arg2=Value1 --arg2=Value2
var args = new [] { "--arg1=test", "--arg2=Value1", "--arg2=Value2" }; 
var arguments = Parser.Default.ParseArguments<Arguments>(args)

I have RepeatedOptionError

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