From 8be60dc5cd4bbda73bb9831ac00c6b393df7e48e Mon Sep 17 00:00:00 2001 From: Steve Domino Date: Tue, 8 Sep 2015 11:27:06 -0600 Subject: [PATCH] some minor updates to tests --- command_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/command_test.go b/command_test.go index 5ac6563e..93edaa22 100644 --- a/command_test.go +++ b/command_test.go @@ -24,7 +24,7 @@ func TestHiddenFlagExecutes(t *testing.T) { } // - boringCmd.Flags().BoolVarP(&secretFlag, "secret", "s", false, "makes commands run in super secret mode") + boringCmd.Flags().BoolVarP(&secretFlag, "secret", "s", false, "makes this command run in super secret mode") boringCmd.Flags().MarkHidden("secret") // @@ -76,7 +76,7 @@ func TestHiddenFlagsAreHidden(t *testing.T) { // boringCmd.PersistentFlags().BoolVarP(&persistentSecretFlag, "Secret", "S", false, "run any sub command in super secret mode") - boringCmd.Flags().MarkHidden("Secret") + boringCmd.PersistentFlags().MarkHidden("Secret") // if a command has inherited flags, they will appear in usage/help text if boringCmd.HasInheritedFlags() {