yargs#CommandBuilder TypeScript Examples

The following examples show how to use yargs#CommandBuilder. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: init.ts    From nft-maker-js with Do What The F*ck You Want To Public License 5 votes vote down vote up
builder: CommandBuilder<Options> = yargs =>
  yargs.option('force', {
    alias: 'f',
    demandOption: true,
    default: false,
    type: 'boolean',
    describe: 'Force creation of the configuration file',
  })