You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to create options and commands in my script. When the user presses -h , I want Options to appear as well as commands to appear.
Please see the script below, am I going about this the wrong way. It appears cli.parse can only be used once.
// commandscommands=cli.parse(null,['showtest']);// optionsoptions=cli.parse({file: ['f','A file to process','file','temp.log'],// -f, --file FILE A file to processtime: ['t','An access time','time',false],// -t, --time TIME An access timework: [false,'What kind of work to do','string','sleep']// --work STRING What kind of work to do});
The text was updated successfully, but these errors were encountered:
I'm trying to create options and commands in my script. When the user presses -h , I want Options to appear as well as commands to appear.
Please see the script below, am I going about this the wrong way. It appears
cli.parse
can only be used once.The text was updated successfully, but these errors were encountered: