Add periods

This commit is contained in:
Mark McGranaghan 2019-06-04 07:36:05 -07:00
parent c6a401d2a3
commit 552611bc1c
2 changed files with 6 additions and 6 deletions

View File

@ -1,19 +1,19 @@
$ go build command-line-subcommands.go $ go build command-line-subcommands.go
# First invoke the foo subcommand # First invoke the foo subcommand.
$ ./command-line-subcommands foo -enable -name=joe a1 a2 $ ./command-line-subcommands foo -enable -name=joe a1 a2
subcommand 'foo' subcommand 'foo'
enable: true enable: true
name: joe name: joe
tail: [a1 a2] tail: [a1 a2]
# Now try bar # Now try bar.
$ ./command-line-subcommands bar -level 8 a1 $ ./command-line-subcommands bar -level 8 a1
subcommand 'bar' subcommand 'bar'
level: 8 level: 8
tail: [a1] tail: [a1]
# But bar won't accept foo's flags # But bar won't accept foo's flags.
$ ./command-line-subcommands bar -enable a1 $ ./command-line-subcommands bar -enable a1
flag provided but not defined: -enable flag provided but not defined: -enable
Usage of bar: Usage of bar:

View File

@ -176,7 +176,7 @@ have access to trailing positional arguments.</p>
<tr> <tr>
<td class="docs"> <td class="docs">
<p>First invoke the foo subcommand</p> <p>First invoke the foo subcommand.</p>
</td> </td>
<td class="code leading"> <td class="code leading">
@ -193,7 +193,7 @@ have access to trailing positional arguments.</p>
<tr> <tr>
<td class="docs"> <td class="docs">
<p>Now try bar</p> <p>Now try bar.</p>
</td> </td>
<td class="code leading"> <td class="code leading">
@ -209,7 +209,7 @@ have access to trailing positional arguments.</p>
<tr> <tr>
<td class="docs"> <td class="docs">
<p>But bar won&rsquo;t accept foo&rsquo;s flags</p> <p>But bar won&rsquo;t accept foo&rsquo;s flags.</p>
</td> </td>
<td class="code"> <td class="code">