PDA

View Full Version : How to add command not argument to console app?



madawg
2nd October 2018, 05:21
I want to set usage part

Usage: ./app command <arg> [options]
........
........
Arguments:
<arg> .....


I don't know how to show "command" at Usage without argument part when show help.

d_stranz
2nd October 2018, 16:13
I do not understand why you are having so much trouble with this. If you are writing the console app, then you are in control of what you print to the screen. Simply output what you want to show.

It would be very helpful if you showed some real code for what you have tried already. Just telling us what you want to do without explaining what you have tried (and doesn't work) is no good at helping us to see why you are having problems.