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 write a lot of test programs where I pass process.argv and that is probably the most common calling signature. i.e.
program.parse(process.argv);
As a convenience, should we default to parsing process.argv if parse is called with no parameters? e.g.
program.parse(); // same as calling program.parse(process.argv)
The downside is it is a bit magical, but it is up to the user whether they want to take the shortcut. I suggest the examples still pass process.argv for clarity.
(I came across this approach in yargs and though it was interesting.)
The text was updated successfully, but these errors were encountered:
The new implicit behaviour could also include support for the Electron variation in argv (#512). This would fit into the automatically-do-something-useful intent.
I write a lot of test programs where I pass
process.argv
and that is probably the most common calling signature. i.e.As a convenience, should we default to parsing
process.argv
if parse is called with no parameters? e.g.The downside is it is a bit magical, but it is up to the user whether they want to take the shortcut. I suggest the examples still pass
process.argv
for clarity.(I came across this approach in yargs and though it was interesting.)
The text was updated successfully, but these errors were encountered: