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

Bring standard help option for applets into core structures #1440

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Purg
Copy link
Member

@Purg Purg commented Oct 28, 2021

While working on a new applet, I found that every applet was defining their own -h/--help options independently, most in very similar manners. This seems unnecessary as I am unaware of any cases where a tool would want to do something overly special for --help that they wouldn't do with a more specialized help command (that they of course would define).

This branch is an attempt at pulling in a standard "help" option that is applied and handled for any applet.
Such a help option is defined before an applet defines it's own options in add_command_options, and the generic help option is handled before an applet's run() is invoked.

This is currently marked as a "draft" as this change has ramifications to disseminate into the existing applets. Initial observations show that this should not be difficult or time consuming to disseminate. Actually just went and fixed the existing applets because it was "easy."

@kwcvrobot
Copy link
Collaborator

@kwcvrobot
Copy link
Collaborator

@kwcvrobot
Copy link
Collaborator

@kwcvrobot
Copy link
Collaborator

@Purg Purg marked this pull request as ready for review November 2, 2021 23:25
@mleotta mleotta added this to the v1.8 milestone Apr 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants