CheatSheet
Code examples
To add an action:
[Action]
public static void Method(...
To add a required parameter:
[Required(Description = "Parameter name")]
string name
To add an optional one:
[Optional("Parameter name")]
string optional
To add an alias for parameter:
[Optional("Default value", "anAlias")]
string value
it can be used either program.exe ... /value:someValue or program.exe ... /anAlias:someValue
Command Line examples
to run program
program.exe "required" /optional:"value" /-boolean
to pass true for boolean
/paramName
to pass false for boolean
/-paramName
to pass an integer array
/paramName:1+2+3
to pass Date
/paramName:21-01-2008
To get help information
program.exe [/help | /h | /?] or just program.exe