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
The command should be able to either access the Cli instance to allow them to either cause the help/usage text to be displayed, or to cause the program to exit with a specific message and status.
The text was updated successfully, but these errors were encountered:
The design of the CLI ends at once the command line is parsed and the command object is created. I chose this line because everyone seems to have a different idea of how actual execution should occur (especially around output messages and exit codes).
Using the current design your command objects could implement an interface with a method like this:
intrun(CLIcli);
As for help specifically, your commands can add a field @Inject Help help to get a reference to the help system.
The command should be able to either access the
Cli
instance to allow them to either cause the help/usage text to be displayed, or to cause the program to exit with a specific message and status.The text was updated successfully, but these errors were encountered: