Use the -harmony option when call the command, like node -harmony examples/pm publish.(Note Windows does not support this pattern.) Use #! /usr/bin/env node -harmony in the subcommands scripts.You can enable -harmony option in two ways: command(), and you may override it toĬustomise the new subcommand (example file custom-command-class.js). $ PORT=80 extra -donate -free-drink Options: = require ( 'commander' ) const program = createCommand ( ) ĬreateCommand is also a method of the Command object, and creates a new command rather than a subcommand. Talla: 9 MB Descargar: 261 Contrasea: Descargar Multi Commander 13 - El administrador de archivos, mltiples pestaas y es una alternativa al Explorador de Windows estndar Multi Commander: Multi Commander es un administrador de archivos, multi ficha y es una alternativa al Explorador de Windows estndar. Allowed choices are small, medium, large. $ extra -drink huge error: option '-d, -drink ' argument 'huge' is invalid. $ extra -help Usage: help Options: -t, -timeout timeout in seconds (default: one minute) -d, -drink drink cup size (choices: "small", "medium", "large") -p, -port port number (env: PORT) -donate optional donation in dollars (preset: "20") -disable-server disables the server -free-drink small drink included free -h, -help display help for command Debugging stand-alone executable subcommandsįor information about terms used in this document see: terminology Installation.Other option types, negatable boolean and boolean|value.Read this in other languages: English | 简体中文 The complete solution for node.js command-line interfaces.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |