-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Description
In my 'foo' sub command file (Eg. pm-foo.js
) how do I get hold of the options passed?
pm.js
:
...
program
.version('0.0.1')
.command('foo [name]', 'desc' {a:'b'})
.parse(process.argv);
I tried passing parameters after the description parameter, but how do you get hold of them in the pm-foo.js
file? I tried printing out name
in pm-foo.js
too. Any help is appreciated.
Metadata
Metadata
Assignees
Labels
No labels