You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/Subcommands.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,10 +14,10 @@ command. The remaining arguments are arguments to that command. You cannot have
14
14
not associated with a command using the subcommand functionality in Ookii.CommandLine, though you
15
15
can still easily define [common arguments](#multiple-commands-with-common-arguments).
16
16
17
-
For example, the [subcommand sample](../src/Samples/SubCommand) can be invoked as follows:
17
+
For example, the [subcommand sample](../src/Samples/Subcommand) can be invoked as follows:
18
18
19
19
```text
20
-
./SubCommand read file.txt -Encoding utf-16
20
+
./Subcommand read file.txt -Encoding utf-16
21
21
```
22
22
23
23
This command line invokes the command named `read`, and passes the remaining arguments to that
@@ -301,7 +301,7 @@ whether this works depends on the command's implementation of that method. If yo
301
301
However, in all cases, it's strongly recommended to use [`RunCommandAsync()`][] if you use any
302
302
asynchronous commands.
303
303
304
-
Check out the [tutorial](Tutorial.md) and the [subcommand sample](../src/Samples/SubCommand) for
304
+
Check out the [tutorial](Tutorial.md) and the [subcommand sample](../src/Samples/Subcommand) for
305
305
more detailed examples of how to create and use commands.
306
306
307
307
### Other assemblies
@@ -471,10 +471,10 @@ help automatically.
471
471
## Subcommand usage help
472
472
473
473
Since subcommands are created using the [`CommandLineParser`][], they support showing usage help when
474
-
parsing errors occur, or the `-Help` argument is used. For example, with the [subcommand sample](../src/Samples/SubCommand) you could run the following to get help on the `read` command:
474
+
parsing errors occur, or the `-Help` argument is used. For example, with the [subcommand sample](../src/Samples/Subcommand) you could run the following to get help on the `read` command:
475
475
476
476
```text
477
-
./SubCommand read -help
477
+
./Subcommand read -help
478
478
```
479
479
480
480
In addition, the [`CommandManager`][] also prints usage help if no command name was supplied, or the
@@ -484,7 +484,7 @@ a list of commands, with their descriptions. This is what that looks like for th
484
484
```text
485
485
Subcommand sample for Ookii.CommandLine.
486
486
487
-
Usage: SubCommand <command> [arguments]
487
+
Usage: Subcommand <command> [arguments]
488
488
489
489
The following commands are available:
490
490
@@ -498,7 +498,7 @@ The following commands are available:
498
498
write
499
499
Writes lines to a file, wrapping them to the specified width.
500
500
501
-
Run 'SubCommand <command> -Help' for more information about a command.
501
+
Run 'Subcommand <command> -Help' for more information about a command.
502
502
```
503
503
504
504
Usage help for a [`CommandManager`][] is also created using the [`UsageWriter`][], and can be customized
0 commit comments