Call command's options
To call an option of a command, you can use the following syntaxes:
--long-option-name
-l
when your option have defined as:
[Display(ShortName = "l")]
public YourType LongOptionName { get; set; }
The short form of the option name can only be used with a single dash.
Boolean options can be used combined in their short form.
for example, if you have defined the following options:
[Display(ShortName = "v")]
public bool Verbose { get; set; }
[Display(ShortName = "f")]
public bool Force { get; set; }
Then you can use -vf
(or -fv
)
to specify the value of the options Verbose
and Force
(the value can be specified like classics boolean options).