Lines Matching refs:command

8 The complete solution for [node.js](http://nodejs.org) command-line interfaces, inspired by Ruby's …
83 command, like: `do -- git --version`.
85 Options on the command line are not positional, and can be specified before or after other command
89 …kes a value (declared using angle brackets). Both are `undefined` unless specified on command line.
153 …ou can specify a default boolean value for a boolean flag and it can be overridden on command line.
265 …n`. The option must have a value after parsing, usually specified on the command line, or perhaps …
283 …handling for displaying the command version. The default option flags are `-V` and `--version`, an…
303 …mmands using `.command()` or `.addCommand()`. There are two ways these can be implemented: using a…
305 In the first parameter to `.command()` you specify the command name and any command arguments. The …
312 // Command implemented using action handler (description is supplied separately to `.command`)
313 // Returns new command for configuring.
315 .command('clone <source> [destination]')
318 console.log('clone command called');
321 …mmand implemented using stand-alone executable file (description is second parameter to `.command`)
324 .command('start <service>', 'start named service')
325 .command('stop [service]', 'stop named service, or all if no name supplied');
333 …n be passed with the call to `.command()` and `.addCommand()`. Specifying `true` for `opts.hidden`…
337 … specify the arguments for the top-level command, and for subcommands they are usually included in…
353 console.error('no command given!');
356 console.log('command:', cmdValue);
360 …The last argument of a command can be variadic, and only the last argument. To make an argument v…
368 .command('rmdir <dir> [otherDirs...]')
385 You can add options to a command that uses an action handler.
387 command object itself. This command argument has the values for the command-specific options added …
393 .command('rm <dir>')
409 .command('run')
415 A command's options on the command line are validated when the command is used. Any unknown options…
419 When `.command()` is invoked with a description argument, this tells Commander that you're going to…
423 You handle the options for an executable (sub)command in the executable, and don't declare them at …
431 .command('install [name]', 'install one or more packages')
432 .command('search [query]', 'search with optional query')
433 .command('update', 'update installed packages', {executableFile: 'myUpdateSubCommand'})
434 .command('list', 'list packages installed', {isDefault: true})
456 -h, --help display help for command
459 A `help` command is added by default if your command has subcommands. It can be used alone, or with…
493 -h, --help display help for command
506 .name("my-command")
507 .usage("[global options] command")
513 Usage: my-command [global options] command
527 Get the command help information as a string for processing or displaying yourself. (The text does …
541 You can explicitly turn on or off the implicit help command with `.addHelpCommand()` and `.addHelpC…
543 You can both turn on and customise the help command by supplying the name and description:
546 program.addHelpCommand('assist [command]', 'show assistance');
551 You can execute custom actions by listening to command and option events.
558 program.on('command:*', function (operands) {
559 console.error(`error: unknown command '${operands[0]}'`);
590 command object with the options values stored as properties.
596 - `storeOptionsAsProperties`: whether to store option values as properties on command object, or st…
597 - `passCommandToAction`: whether to pass command to action handler,
612 .command('show')
636 This factory function creates a new command. It is exported and may be used instead of using `new`,…
643 `createCommand` is also a method of the Command object, and creates a new command rather than a sub…
644 when creating subcommands using `.command()`, and you may override it to
645 …d (examples using [subclass](./examples/custom-command-class.js) and [function](./examples/custom-
652 - Use the `--harmony` option when call the command, like `node --harmony examples/pm publish`. The …
693 .command('setup [env]')
703 .command('exec <cmd>')