diff --git a/cmd/foreach/foreach.go b/cmd/foreach/foreach.go index c8d720d..04aa56c 100644 --- a/cmd/foreach/foreach.go +++ b/cmd/foreach/foreach.go @@ -30,10 +30,11 @@ var exec executor.Executor = executor.NewRealExecutor() func NewForeachCmd() *cobra.Command { cmd := &cobra.Command{ - Use: "foreach -- SHELL_COMMAND", - Short: "Run a shell command against each working copy", - Run: run, - Args: cobra.MinimumNArgs(1), + Use: "foreach -- SHELL_COMMAND", + Short: "Run a shell command against each working copy", + Run: run, + Args: cobra.MinimumNArgs(1), + DisableFlagParsing: true, } return cmd diff --git a/cmd/root.go b/cmd/root.go index 27a09f3..5ef5944 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -32,10 +32,11 @@ var commit = "commit-dev" var date = "date-dev" var rootCmd = &cobra.Command{ - Use: "turbolift", - Short: "Turbolift", - Long: `Mass refactoring tool for repositories in GitHub`, - Version: fmt.Sprintf("%s (%s, built %s)", version, commit, date), + Use: "turbolift", + Short: "Turbolift", + Long: `Mass refactoring tool for repositories in GitHub`, + Version: fmt.Sprintf("%s (%s, built %s)", version, commit, date), + TraverseChildren: true, } func init() {