allow arguments with short flag only long optional#124
Open
syrshax wants to merge 8 commits intoakamensky:v1from
Open
allow arguments with short flag only long optional#124syrshax wants to merge 8 commits intoakamensky:v1from
syrshax wants to merge 8 commits intoakamensky:v1from
Conversation
as detailed in the issue akamensky#123 now tools can no longer have a limitation of forcing long flags
jlombera
reviewed
Jan 23, 2026
jlombera
reviewed
Jan 23, 2026
jlombera
reviewed
Jan 24, 2026
jlombera
reviewed
Jan 24, 2026
jlombera
left a comment
There was a problem hiding this comment.
I don't have any say on this (not owner/maintainer/contributor) but LGTM.
jlombera
reviewed
Jan 25, 2026
argparse.go
Outdated
There was a problem hiding this comment.
This needs update too. Currently the help message when the long name is empty is printed this this:
-s -- <Help string>
Following change fixed it for me:
if argument.lname != "" {
arg = arg + "--" + argument.lname
}Which results in following message:
-s <Help string>
Author
There was a problem hiding this comment.
Thank you again for the feedback!
…eing printed wrongly
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
as detailed in the issue #123 now tools can no longer have a limitation of forcing long flags