summaryrefslogtreecommitdiff
path: root/example_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'example_test.go')
-rw-r--r--example_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/example_test.go b/example_test.go
index 6216e18..4bd7632 100644
--- a/example_test.go
+++ b/example_test.go
@@ -504,7 +504,7 @@ func Example_envVarOnly() {
defer os.Unsetenv("AUTH_KEY")
var args struct {
- AuthKey string `arg:"-,--,env:AUTH_KEY"`
+ AuthKey string `arg:"--,env:AUTH_KEY"`
}
MustParse(&args)
@@ -517,7 +517,7 @@ func Example_envVarOnlyShouldIgnoreFlag() {
os.Args = split("./example --=my_key")
var args struct {
- AuthKey string `arg:"-,--,env:AUTH_KEY"`
+ AuthKey string `arg:"--,env:AUTH_KEY"`
}
err := Parse(&args)
@@ -530,7 +530,7 @@ func Example_envVarOnlyShouldIgnoreShortFlag() {
os.Args = split("./example -=my_key")
var args struct {
- AuthKey string `arg:"-,--,env:AUTH_KEY"`
+ AuthKey string `arg:"--,env:AUTH_KEY"`
}
err := Parse(&args)