This project is read-only.


Two-Character Abbreviations


It would be nice to have the possibility to create commands with two-character abbreviations, e.g. MyLongParameter can be shortened with mp, while MyVeryLongParameter can be shortened with mv.

I have an application providing already 15 (!) commandline parameters and some do not even use a short character which is contained in the long verb.
Closed Feb 21, 2016 at 9:30 PM by Trupik
This issue has been addressed in v3 which you now can get from NuGet.
The project has been migrated to GitHub, please use it for tracking the project, getting information about new releases & reporting all potential issues.


Trupik wrote Apr 27, 2014 at 9:03 PM

Aren't aliases giving you this functionality already?

SwitchArgument showArgument = new SwitchArgument('s', "show", "Set whether show or not", true);

now you can use
on the commandline.

carsteni wrote Apr 28, 2014 at 9:47 AM

At the moment we're using the Attribute-Syntax. I don't see a way to provide this in good way:

/// <summary>
    /// Gets or sets the input file.
    /// </summary>
    [ValueArgumentAttribute(typeof(string), 'i', "input", Description = "Specifies the input file", Optional = false)]
    public string InputFile { get; set; }
Or is there a way to add aliases to the ValueArgumentAttribute?



wrote Feb 21, 2016 at 9:30 PM