Skip to content

Parsing issues when option has separator attribute and when empty value provided... fails #420

@hrnagesh-zz

Description

@hrnagesh-zz
 [Option('b', "BookIds", Required = false, HelpText = "List of Books", Separator = ',')]
        public IEnumerable<string> Bookids { get; set; }

[Option('v', "Verbose", Required = false, Hidden = true, HelpText = "Generate Book details", Default = "Yes")]
        public string All { get; set; }

ProcessBooks -b -v NO


If option has separator attribute and when empty value provided... fails; it considers other argument as its values..

In this case; -b has value -v and NO;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions