diff --git a/examples/command-line-flags/command-line-flags.sh b/examples/command-line-flags/command-line-flags.sh index d8fb754..246f4c7 100644 --- a/examples/command-line-flags/command-line-flags.sh +++ b/examples/command-line-flags/command-line-flags.sh @@ -54,6 +54,3 @@ $ ./command-line-flags -wat flag provided but not defined: -wat Usage of ./command-line-flags: ... - -# Next we'll look at environment variables, another common -# way to parameterize programs. diff --git a/examples/command-line-subcommands/command-line-subcommands.sh b/examples/command-line-subcommands/command-line-subcommands.sh index c5948e8..32531ed 100644 --- a/examples/command-line-subcommands/command-line-subcommands.sh +++ b/examples/command-line-subcommands/command-line-subcommands.sh @@ -19,3 +19,6 @@ flag provided but not defined: -enable Usage of bar: -level int level + +# Next we'll look at environment variables, another common +# way to parameterize programs. diff --git a/public/command-line-flags b/public/command-line-flags index 42dad0b..43ec18f 100644 --- a/public/command-line-flags +++ b/public/command-line-flags @@ -272,7 +272,7 @@ generated help text for the command-line program.

and show the help text again.

- +
$ ./command-line-flags -wat
 flag provided but not defined: -wat
@@ -283,18 +283,6 @@ and show the help text again.

- - -

Next we’ll look at environment variables, another common -way to parameterize programs.

- - - - - - - - diff --git a/public/command-line-subcommands b/public/command-line-subcommands index 945f646..39b385b 100644 --- a/public/command-line-subcommands +++ b/public/command-line-subcommands @@ -214,7 +214,7 @@ have access to trailing positional arguments.

But bar won’t accept foo’s flags.

- +
$ ./command-line-subcommands bar -enable a1
 flag provided but not defined: -enable
@@ -226,6 +226,18 @@ have access to trailing positional arguments.

+ + +

Next we’ll look at environment variables, another common +way to parameterize programs.

+ + + + + + + +