You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If we can add commands to a parser, we ought to be able to add 'help' text for those commands (as with options and flags), and get it back out in a nice format.
parser.addCommand(... help: ...);
print(parser.commandUsage);
Which might output something like:
start Starts the service
stop Stops the service
restart Restarts the service
The help text could be accessible via a field in the command's ArgParser:
parser.commands['foo'].help
and this field could be reused to store a description of the overall script:
parser.help
(or possibly s/help/description)
The text was updated successfully, but these errors were encountered:
This issue was originally filed by @seaneagan
If we can add commands to a parser, we ought to be able to add 'help' text for those commands (as with options and flags), and get it back out in a nice format.
parser.addCommand(... help: ...);
print(parser.commandUsage);
Which might output something like:
start Starts the service
stop Stops the service
restart Restarts the service
The help text could be accessible via a field in the command's ArgParser:
parser.commands['foo'].help
and this field could be reused to store a description of the overall script:
parser.help
(or possibly s/help/description)
The text was updated successfully, but these errors were encountered: