Skip to content

Fix trailing arguments being considered errant positionals#80

Merged
integrii merged 4 commits intomasterfrom
remotes/origin/trailingArgs
May 28, 2022
Merged

Fix trailing arguments being considered errant positionals#80
integrii merged 4 commits intomasterfrom
remotes/origin/trailingArgs

Conversation

@integrii
Copy link
Owner

Fixes #79

If you would like to use a variable number of arguments at the end of your program without the user specifying -- before the list, you can do this by setting flaggy.ShowHelpOnUnexpectedDisable() and then parsing the []string at flaggy.TrailingArguments.

  • new trailingArguments example
  • new tests for trailing arguments with positionals. fixed trailing arguments being incorrectly considered as positionals

@integrii integrii merged commit 7f80235 into master May 28, 2022
@integrii integrii deleted the remotes/origin/trailingArgs branch May 28, 2022 05:29
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.

Unknown number of positional arguments

1 participant