Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fully automatic help #175

Closed
remkop opened this issue Aug 25, 2017 · 1 comment
Closed

Fully automatic help #175

remkop opened this issue Aug 25, 2017 · 1 comment

Comments

@remkop
Copy link
Owner

remkop commented Aug 25, 2017

Imagine an autoHelp attribute on the @Command annotation that installs a Help subcommand as well as a mixin with standard usageHelp and versionHelp options.

The help subcommand would show the usage help of the subcommand that follows or (if the help subcommand is the last argument) of the preceding command.

Having a standard mixin with help/version options automatically added is convenient and reduces the annoying IDE warnings that these fields are unused.

@remkop remkop added this to the backlog milestone Aug 25, 2017
@remkop remkop modified the milestones: backlog, 3.0 Dec 20, 2017
@remkop remkop changed the title Add built-in help subcommand that shows help on specified sub-subcommand Fully automatic help Dec 21, 2017
@remkop remkop mentioned this issue Jan 5, 2018
remkop added a commit that referenced this issue Jan 10, 2018
…tivate fully automatic help including a help subcommand.
@remkop remkop closed this as completed in 96f783c Jan 11, 2018
@remkop
Copy link
Owner Author

remkop commented Feb 5, 2018

Reopening for further refinement:

  • Rename autoHelp to addHelpOptions
  • addHelpOptions should not mix in the HelpCommand subcommand
  • Make the HelpCommand subcommand public (and final) and document it separately
  • Anything else needed to support custom help subcommands?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant