pkgjs / parseargs

Polyfill of `util.parseArgs()`
Apache License 2.0
121 stars 9 forks source link

docs: rework simple example #132

Closed shadowspawn closed 1 year ago

shadowspawn commented 2 years ago

Problem

The example in the (upstream) simple example does not show typical usage, with hard-coded args and no command-line invocation. It includes positionals in the return values which will never be present with the simple strict configuration.

Solution

A range of minor updates:

shadowspawn commented 1 year ago

I don't feel strongly enough about this to pursue an upstream PR!