mirror of
https://github.com/spf13/cobra
synced 2024-11-24 14:47:12 +00:00
tiny fix for TestRemoveParentPersistentArgs
This commit is contained in:
parent
eb493c9ca9
commit
9a4aaf6d9c
1 changed files with 1 additions and 1 deletions
|
@ -2852,7 +2852,7 @@ func TestRemoveParentPersistentArgs(t *testing.T) {
|
||||||
childCmd.PersistentFlags().Bool("cp", false, "")
|
childCmd.PersistentFlags().Bool("cp", false, "")
|
||||||
childCmd.Flags().Int("int", 0, "")
|
childCmd.Flags().Int("int", 0, "")
|
||||||
|
|
||||||
output, err := executeCommand(rootCmd, "child", "--rp", "--ri", "10", "--cp", "--int", "10")
|
output, err := executeCommand(rootCmd, "child", "-r", "--ri", "10", "--cp", "--int", "10")
|
||||||
if output != "" {
|
if output != "" {
|
||||||
t.Errorf("Unexpected output: %v", output)
|
t.Errorf("Unexpected output: %v", output)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue