-
Notifications
You must be signed in to change notification settings - Fork 0
How should users call your program
JFBlouin edited this page Apr 10, 2019
·
3 revisions
When the code is executed by the user, the first argument is the command name, followed by the arguments. The library will find the command and execute it passing in the parameters recieved. Otherwise, it will print help information.
Assuming the code compiles to MyApp.exe, a sample command would be
MyApp.exe SayHello --name UserName
or
MyApp.exe SayHello -n UserName
Command name can be ommited if (a) there is a single command or (b) there is a default command
- The list of commands and parameters are parsed from the code.
- The command to run is extracted.
- The other arguments are extracted.
- Command method is invoked.
Need more information or have an idea? Do not hesitate to reach out or submit a pull request.