diff --git a/examples/command-line-flags/command-line-flags.sh b/examples/command-line-flags/command-line-flags.sh index 8b22c06..5b43f39 100644 --- a/examples/command-line-flags/command-line-flags.sh +++ b/examples/command-line-flags/command-line-flags.sh @@ -31,12 +31,12 @@ tail: [a1 a2 a3] # Note that the `flag` package requires all flags to # appear before positional arguments (otherwise the flags # will be interpreted as positional arguments). -$ ./command-line-flags -word=opt a1 a2 a3 -num=7 +$ ./command-line-flags -word=opt a1 a2 a3 -numb=7 word: opt numb: 42 fork: false svar: bar -trailing: [a1 a2 a3 -num=7] +trailing: [a1 a2 a3 -numb=7] # Use `-h` or `--help` flags to get automatically # generated help text for the command-line program. diff --git a/public/command-line-flags b/public/command-line-flags index e2e7e62..8061b3c 100644 --- a/public/command-line-flags +++ b/public/command-line-flags @@ -231,12 +231,12 @@ will be interpreted as positional arguments).
$ ./command-line-flags -word=opt a1 a2 a3 -num=7
+ $ ./command-line-flags -word=opt a1 a2 a3 -numb=7
word: opt
numb: 42
fork: false
svar: bar
-trailing: [a1 a2 a3 -num=7]
+trailing: [a1 a2 a3 -numb=7]
If we set BAR
in the environemnt first, the running
+
If we set BAR
in the environment first, the running
program picks that value up.