summaryrefslogtreecommitdiff
path: root/usage_test.go
diff options
context:
space:
mode:
authorRick <[email protected]>2017-10-02 14:36:23 +0100
committerRick <[email protected]>2017-10-02 14:36:23 +0100
commitba9514f0be00c17e53b4e0e255bcb9482354935f (patch)
treef0814a6cf76ebae438a0d827466c853c913b8b3f /usage_test.go
parentd7961941f0ceee4e55062041991de7bbd43b2b57 (diff)
Further clarification
Diffstat (limited to 'usage_test.go')
-rw-r--r--usage_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/usage_test.go b/usage_test.go
index bdf4ea2..940bf40 100644
--- a/usage_test.go
+++ b/usage_test.go
@@ -65,13 +65,13 @@ func TestUsageLongPositionalWithHelp_legacyForm(t *testing.T) {
Positional arguments:
VERYLONGPOSITIONALWITHHELP
- this positional argument is very long
+ this positional argument is very long but cannot include commas
Options:
--help, -h display this help and exit
`
var args struct {
- VeryLongPositionalWithHelp string `arg:"positional,help:this positional argument is very long"`
+ VeryLongPositionalWithHelp string `arg:"positional,help:this positional argument is very long but cannot include commas"`
}
p, err := NewParser(Config{}, &args)
@@ -88,13 +88,13 @@ func TestUsageLongPositionalWithHelp_newForm(t *testing.T) {
Positional arguments:
VERYLONGPOSITIONALWITHHELP
- this positional argument is very long
+ this positional argument is very long, and includes: commas, colons etc
Options:
--help, -h display this help and exit
`
var args struct {
- VeryLongPositionalWithHelp string `arg:"positional" help:"this positional argument is very long"`
+ VeryLongPositionalWithHelp string `arg:"positional" help:"this positional argument is very long, and includes: commas, colons etc"`
}
p, err := NewParser(Config{}, &args)