Skip to content

Consider supporting POSIX, PowerShell, and Windows prefixes for all options by default #351

Open
@jonsequitur

Description

@jonsequitur

Many users have different expectations of command line syntax depending on which ecosystem they're used to.

It may help users if all prefixes "just work". For example, given the following code:

var myApp = new RootCommand("myapp");
myApp.AddOption(new Option("option"));

then the following command lines would be equivalent:

> myapp --option
> myapp -option
> myapp /option

The developer should retain the ability to opt out of this behavior, to specify exactly which prefixes they support, and to mix and match within one application. This is currently supported and should be retained.

These issues have a related motivation: #43, #133.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions