Skip to content

Conversation

@DannyBen
Copy link
Member

@DannyBen DannyBen commented Oct 21, 2020

Prior to this PR, specifying a short flag only, generated a broken script.

flags:
- short: -1
  help: Same as --tail 1

This PR fixes it.

Note that for those using custom translations, there is one change. Instead of %{long}, use %{name} in the flag_requires_an_argument key:

- flag_requires_an_argument: "%{long} requires an argument: %{usage}"
+ flag_requires_an_argument: "%{name} requires an argument: %{usage}"

@DannyBen DannyBen merged commit 145f3be into master Oct 21, 2020
@DannyBen DannyBen deleted the fix/solo-short-flag branch October 21, 2020 08:30
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.

2 participants