How to use the preset function from yargs

Find comprehensive JavaScript yargs.preset code examples handpicked from public code repositorys.

116
117
118
119
120
121
122
123
124
125
  inputs.devChoice = argv.preset;
  inputs.folderChoice = availablePresets[argv.preset] || global.process.env.HAIKU_PROJECT_FOLDER;
} else if (argv.preset === 'fast') {
  inputs.skipInitialBuild = true;
} else {
  delete argv.preset;
}

if (argv.preset) {
  log.hat('running automatically with preset ' + argv.preset);
fork icon132
star icon0
watch icon43

+ 53 other calls in file

Other functions in yargs

Sorted by popularity

function icon

yargs.argv is the most popular function in yargs (1012 examples)