Closed
Description
I am unsure what semantic meaning to give args
as a name in the returned object. To be fair, this is made worse by my experience with Commander, where program.args
are the "positionals" left after parsing by removing the options and option-values.
I suspect it is short for "arguments" and skirting around what terminology to use. I think is reasonable to describe the input parameters to parseArgs
as "arguments", but less clear when talking about the results of parsing.
The Initial Proposal returned options
and positionals
, and raised the question of terminology (and used "Flags", "Options", "Positionals"):
- questions: util: add util.parseArgs() nodejs/node#35015 (comment)
- feedback query: util: add util.parseArgs() nodejs/node#35015 (comment)