summaryrefslogtreecommitdiff
path: root/example_test.go
diff options
context:
space:
mode:
authorDylan Allbee <[email protected]>2020-01-23 21:08:18 -0800
committerDylan Allbee <[email protected]>2020-01-25 11:53:34 -0800
commit338e831a8474c442b2c5e75eefed7b602276faa8 (patch)
tree3928166c5324c4ba73043d80168b7540a5927453 /example_test.go
parente9c71eb4fa701960bd054d4034d155717aef8373 (diff)
Print global options in help for subcommands
fixes #101
Diffstat (limited to 'example_test.go')
-rw-r--r--example_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/example_test.go b/example_test.go
index be3cd12..4e6372f 100644
--- a/example_test.go
+++ b/example_test.go
@@ -235,7 +235,8 @@ func Example_helpTextForSubcommand() {
// Positional arguments:
// ITEM item to fetch
//
- // Options:
+ // Global options:
+ // --verbose
// --help, -h display this help and exit
}