Skip to content
This repository was archived by the owner on Oct 17, 2021. It is now read-only.

Move default value next to the flag name in help #3

Merged
merged 2 commits into from
Jul 13, 2019

Conversation

deansheather
Copy link
Member

New help looks similar to this:

simple-example flags:
        -t=test sets test mode
        --t2="test 2"   sets test2 mode
        -v=false        sets verbose mode

Quotes are added around default value strings that contain spaces according to unicode.IsSpace so the help representation matches what you would need to do usually.

Closes #2.

@deansheather deansheather requested a review from ammario July 12, 2019 05:48
Copy link
Member

@ammario ammario left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feel free to merge after comment added

@deansheather deansheather merged commit 9949b82 into master Jul 13, 2019
@deansheather deansheather deleted the move-def-value branch July 13, 2019 07:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Move default value next to flag in help
2 participants