Skip to content

Commit a8a14c9

Browse files
authored
Spell subcommand consistently without hyphen (#1177)
1 parent 6f3aebb commit a8a14c9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Readme.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ A command's options on the command line are validated when the command is used.
415415
416416
### Stand-alone executable (sub)commands
417417
418-
When `.command()` is invoked with a description argument, this tells Commander that you're going to use stand-alone executables for sub-commands.
418+
When `.command()` is invoked with a description argument, this tells Commander that you're going to use stand-alone executables for subcommands.
419419
Commander will search the executables in the directory of the entry script (like `./examples/pm`) with the name `program-subcommand`, like `pm-install`, `pm-search`.
420420
You can specify a custom name with the `executableFile` configuration option.
421421
@@ -626,7 +626,7 @@ console.log(programOptions.name);
626626
627627
The Commander package includes its TypeScript Definition file.
628628
629-
If you use `ts-node` and stand-alone executable sub-commands written as `.ts` files, you need to call your program through node to get the sub-commands called correctly. e.g.
629+
If you use `ts-node` and stand-alone executable subcommands written as `.ts` files, you need to call your program through node to get the subcommands called correctly. e.g.
630630
631631
```bash
632632
node -r ts-node/register pm.ts
@@ -636,8 +636,8 @@ node -r ts-node/register pm.ts
636636
637637
You can enable `--harmony` option in two ways:
638638
639-
- Use `#! /usr/bin/env node --harmony` in the sub-commands scripts. (Note Windows does not support this pattern.)
640-
- Use the `--harmony` option when call the command, like `node --harmony examples/pm publish`. The `--harmony` option will be preserved when spawning sub-command process.
639+
- Use `#! /usr/bin/env node --harmony` in the subcommands scripts. (Note Windows does not support this pattern.)
640+
- Use the `--harmony` option when call the command, like `node --harmony examples/pm publish`. The `--harmony` option will be preserved when spawning subcommand process.
641641
642642
### Debugging stand-alone executable subcommands
643643

0 commit comments

Comments
 (0)