Review how "help" works #191
Replies: 1 comment 3 replies
|
I think we need to differentiate between the user and developer experience. Concerning your proposal: If we include the "info" method of all used modules we drown the user in not-relevant information IMO. Now, it might make sense to include the "usage" part of the main/interactive module. But the tricky part is that it needs to be contextualized with the goal of the entire cmd. So IMO it makes sense to print both description + "usage" if a main module is specified? What do you think? |
Uh oh!
There was an error while loading. Please reload this page.
Initially, the idea was to print the help text of the main module of a command.
Alternative proposal:
Print the command's description followed by the help messages of all used modules.
The help messages of the modules should dynamically include the module configuration.
Maybe there should be two methods in the module interface instead of "help": "info" and "usage".
In the mentioned proposal, the "info" method is called on all modules of a command, except from the main module. For the main module, the "usage" function is called.
The "info" functions prints module information including configured settings, whereas the "usage" function gives information on what cmd line arguments can be used.
All reactions