diff --git a/src/funcs/parseArguments.ts b/src/funcs/parseArguments.ts index 62b066c..25c150d 100644 --- a/src/funcs/parseArguments.ts +++ b/src/funcs/parseArguments.ts @@ -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} ${(defaultValue === undefined) ? '' : `], defaults to "${defaultValue}"`}${(description !== undefined && description !== '') ? `\n ${description}` : ''}` )).join('\n')