diff options
| author | Pablo Diaz <[email protected]> | 2022-05-21 17:44:32 +0200 |
|---|---|---|
| committer | Ilja Neumann <[email protected]> | 2023-06-03 02:39:56 +0200 |
| commit | 5f10667949b09f9a43c241d969eea8d3ba9456c0 (patch) | |
| tree | f699c397356663d51f6f923cc49d78b4b5c31592 /example_test.go | |
| parent | c3cac76438ca36d9291d2a26f3ba558ef929d588 (diff) | |
fixed tests
Diffstat (limited to 'example_test.go')
| -rw-r--r-- | example_test.go | 6 |
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) |
