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

Optionally hijacks -h/--help options #254

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

Conversation

nkakouros
Copy link

cc: @mbland

Generally, it is a good practice to have -h, --help or -help print the help for a command. Right now, it is required that every new command that the users create to implement this. This PR adds a flag to enable go-core.bash to hijack these options and print the command help whenever they are present.

@coveralls
Copy link

coveralls commented Sep 28, 2019

Coverage Status

Coverage increased (+0.04%) to 95.032% when pulling 771f9c2 on nkakouros-forks:help-hijack into 292e080 on mbland:master.

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.

None yet

2 participants