summaryrefslogtreecommitdiff
path: root/usage_test.go
diff options
context:
space:
mode:
authorIlja Neumann <[email protected]>2023-06-03 09:50:42 +0200
committerIlja Neumann <[email protected]>2023-06-03 09:50:42 +0200
commitb928a1839ae3502fc6fef8d7743dd78f2c772c8a (patch)
treeb75ccd24fbd45cdae45c7646c1c0ff991ea2be11 /usage_test.go
parentccf62e0ffccbae98aeaf60d7fbe76ccc924de11e (diff)
Parse env-only vars
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 5ac7757..0debb4a 100644
--- a/usage_test.go
+++ b/usage_test.go
@@ -544,10 +544,10 @@ Options:
}
func TestUsageWithEnvOptions(t *testing.T) {
- expectedUsage := "Usage: [CUSTOM=custom_value] [ENVONLY=envonly_value] example [-s SHORT]"
+ expectedUsage := "Usage: example [-s SHORT]"
expectedHelp := `
-Usage: [CUSTOM=custom_value] [ENVONLY=envonly_value] example [-s SHORT]
+Usage: example [-s SHORT]
Options:
-s SHORT [env: SHORT]
@@ -652,10 +652,10 @@ Options:
}
func TestFailEnvOnly(t *testing.T) {
- expectedUsage := "Usage: [AUTH_KEY=auth_key_value] example [--arg ARG]"
+ expectedUsage := "Usage: example [--arg ARG]"
expectedHelp := `
-Usage: [AUTH_KEY=auth_key_value] example [--arg ARG]
+Usage: example [--arg ARG]
Options:
--arg ARG, -a ARG [env: MY_ARG]