Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix trailing arguments being considered errant positionals #80

Merged
merged 4 commits into from May 28, 2022

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