🎨 We can call script directly due to shebang, no need to prepend node
This commit is contained in:
parent
0f72116e30
commit
cbead3f886
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ export default function parseArguments(spec: { [key: string]: IOption }): { fail
|
|||
|
||||
let argumentOption = '';
|
||||
|
||||
const usage = `node ${process.argv[1].substr(process.argv[1].lastIndexOf('/') + 1)} [options]\nOPTIONS\n${
|
||||
const usage = `./${process.argv[1].substr(process.argv[1].lastIndexOf('/') + 1)} [options]\nOPTIONS\n${
|
||||
Object.entries(spec).map(([key, {default: defaultValue, short, description}]) => (
|
||||
` ${(defaultValue === undefined) ? '' : '['}${(short !== undefined && short !== '') ? `-${short}, ` : ''}--${key} <value>${(defaultValue === undefined) ? '' : `], defaults to "${defaultValue}"`}${(description !== undefined && description !== '') ? `\n ${description}` : ''}`
|
||||
)).join('\n')
|
||||
|
|
Loading…
Reference in a new issue