From 2f749ec5a9587fdc06d81c84b75e09409730d69a Mon Sep 17 00:00:00 2001 From: Garry A Offord Date: Tue, 3 Sep 2024 09:50:39 -0500 Subject: [PATCH] Fixed typo in example 1, subcommand 2 example and doc --- README.md | 2 +- example_1_subcommand_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e9cb6a7..fadf1ca 100644 --- a/README.md +++ b/README.md @@ -74,7 +74,7 @@ var ( // Define a second sub command from the root command with an int flag. sub2 = root.SubCommand("sub2", "second sub command") - flag2 = sub1.Int("flag2", 0, "sub2 int flag") + flag2 = sub2.Int("flag2", 0, "sub2 int flag") ) // Definition and usage of sub commands and sub commands flags. diff --git a/example_1_subcommand_test.go b/example_1_subcommand_test.go index d5d7403..f10877a 100644 --- a/example_1_subcommand_test.go +++ b/example_1_subcommand_test.go @@ -19,7 +19,7 @@ var ( // Define a second sub command from the root command with an int flag. sub2 = root.SubCommand("sub2", "second sub command") - flag2 = sub1.Int("flag2", 0, "sub2 int flag") + flag2 = sub2.Int("flag2", 0, "sub2 int flag") ) // Definition and usage of sub commands and sub commands flags.