tiny fix for TestRemoveParentPersistentArgs

This commit is contained in:
Jun Nishimura 2023-07-23 15:38:41 +09:00
parent eb493c9ca9
commit 9a4aaf6d9c

View file

@ -2852,7 +2852,7 @@ func TestRemoveParentPersistentArgs(t *testing.T) {
childCmd.PersistentFlags().Bool("cp", false, "")
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 != "" {
t.Errorf("Unexpected output: %v", output)
}