Skip to content

fix: formatting of short flags when PFlag=true#8

Merged
muesli merged 1 commit intomuesli:mainfrom
alecthomas:main
Feb 5, 2022
Merged

fix: formatting of short flags when PFlag=true#8
muesli merged 1 commit intomuesli:mainfrom
alecthomas:main

Conversation

@alecthomas
Copy link
Contributor

Previously this was formatted as eg.

--h --help

Now it will be:

-h, --help

Previously this was formatted as eg.

    --h --help

Now it will be:

    -h, --help
@alecthomas
Copy link
Contributor Author

I also added the comma because that seems to be more idiomatic, eg. man git, man brew, etc. all use this format.

@alecthomas
Copy link
Contributor Author

Related, I created a mango adapter for Kong.

@muesli muesli added the bug Something isn't working label Feb 5, 2022
@muesli
Copy link
Owner

muesli commented Feb 5, 2022

Awesome, great job on this, kong and the mango adapter, @alecthomas! We should add it to mango's README!

@muesli muesli merged commit 77e2058 into muesli:main Feb 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants