UNPKG

llearn

Version:

Bad-ass developers create awesome apps

19 lines (17 loc) 708 B
/* Parse the parameters */ const _command = require('commander') // yarn add commander _command.version(Version()) .option('-a, --about', 'Show about information.') .option('-f, --flow <flowFile>', 'Open the flow file.') .option('-o, --output <outputFile>', 'specify the output file. if none given then "./output/" folder is used') .option('-r, --run', 'Run the flow diagram output.') .option('-d, --debug', 'Show debug information.') .parse(process.argv) const Command_help = () => _log(_command.help()) // eslint-disable-line /* Detail help */ function Command_helpDetail () { // eslint-disable-line // Add detail help here _logLine() _log('Simple search:') _log() }