-
Notifications
You must be signed in to change notification settings - Fork 3
Generate Help Automatically
Tarik Guney edited this page Jul 14, 2020
·
2 revisions
Command Core prints out small documentation for the verbs and their associated options in an organized way to the console.You don't need to anything special as it works out of the box when people pass --help flag to the command. Check out the CommandCore.TestConsole project for an example.
VerbName and OptionName attributes accept an optional Description value which is used when printing out the documentation. You can see an example of the documentation output below:
VERBS:
----------------------
add (add-person) : Adds a new person to the system.
Options:
--firstname (--fn) : First name of the person provided.
--lastname: Last name of the person provided.
--haslicense -hs: Indicates whether the person has a driver license
--age -a (--old -o)