Skip to content

Support "Or" Argument  #1051

@tdashworth

Description

@tdashworth

Would it be possible to support two (or more?) optional arguments that together must be required. For example:

dotnet clean <PROJECT>|<SOLUTION>

where you must pass either a project or a solution. It this case they would be the same type FileInfo but I'm looking for a FileInfo and string.

Otherwise is it possible to setup two commands? One clitool subcommand1 <string-arg> and another clitool subcommand1 <file-arg>?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions