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

Add short flags and fix conflicting host flag #24

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

Conversation

rafaelespinoza
Copy link

This is a nice tool. But there are some minor usability annoyances with the input flags.

Addresses the host= flag short-form that conflicts with --help's short form. Both are -h and help takes precedence. Get around this by specifying an alternative short-form for host. This is similar to #22.
Fix a typo in usage text.
Adds some other missing short-form flags.

I was careful to look for creating conflicts and couldn't find any new ones. Going through each subcommand's usage func shows that it still works. From what I understand, if there was a conflicting flag, then beanstool <subcommand> -h would output something like:

"Unknown command `delete'. Please specify one command of: bury, kick, peek, put, stats or tail

Which doesn't seem to happen.
Let me know what you think, thanks.

The -h flag conflicts with help. Now you don't need to type out the
entire long-form of the flag to specify a host.

Signed-off-by: Rafael Espinoza <[email protected]>
Signed-off-by: Rafael Espinoza <[email protected]>
Signed-off-by: Rafael Espinoza <[email protected]>
Didn't do Put.TTR flag since it'd conflict with Tube.

Signed-off-by: Rafael Espinoza <[email protected]>
Signed-off-by: Rafael Espinoza <[email protected]>
@rafaelespinoza rafaelespinoza marked this pull request as ready for review August 31, 2020 00:33
@rafaelespinoza rafaelespinoza changed the title Update cli flags Add short flags and fix conflicting host flag Aug 31, 2020
Signed-off-by: Rafael Espinoza <[email protected]>
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.

1 participant