forked from jessevdk/go-flags
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This change restores the old behaviour of PassAfterNonOption working together with commands so that a command would (also) get everything after the first non-option, while also preserving the new behaviour of those non-options landing in the positional array if provided. The behaviour for when a command and a positional array are both present continues to be weird (but it's unclear whether there's a non-weird way out of that one other than failing with a "don't do that").
- Loading branch information
Showing
2 changed files
with
36 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
This file contains 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