-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disabling all arguments after foreach (#51)
Fixes #50. Uses `DisableFlagParsing` as per the documentation to disable the subsequent flag parsing in the command and leaving it as arguments to the shell command. Added `TraverseChildren` to rootCmd to allow -v and -h to be parsed. https://pkg.go.dev/github.com/spf13/cobra#Command Tested on Mac OS. I'm unable to write tests as we're not testing the flag parsing at the moment.
- Loading branch information
1 parent
425dd7c
commit e2183ea
Showing
2 changed files
with
10 additions
and
8 deletions.
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