Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

util: add util.parseArgs() #35015

Closed
wants to merge 14 commits into from
Closed

util: add util.parseArgs() #35015

wants to merge 14 commits into from

Commits on Sep 10, 2020

  1. util: add util.parseArgs()

    Add a function, `util.parseArgs()`, which accepts an array of
    arguments and returns a parsed object representation thereof.
    
    Ref: nodejs/tooling#19
    boneskull committed Sep 10, 2020
    Configuration menu
    Copy the full SHA
    1ae63aa View commit details
    Browse the repository at this point in the history

Commits on Sep 11, 2020

  1. review changes

    - rename `expectsValue` to `optionsWithValue`
    - output an object with props `options` and `positionals` instead of magic `_`
    - add `multiOptions` option, which results in arrays when parsed
    - remove "count" functionality in lieu of `multiOptions`
    - update examples in docstring
    - update tests
    - update docs
    boneskull committed Sep 11, 2020
    Configuration menu
    Copy the full SHA
    b180e2a View commit details
    Browse the repository at this point in the history
  2. lint

    boneskull committed Sep 11, 2020
    Configuration menu
    Copy the full SHA
    a0221e3 View commit details
    Browse the repository at this point in the history
  3. update docstring

    boneskull committed Sep 11, 2020
    Configuration menu
    Copy the full SHA
    971039c View commit details
    Browse the repository at this point in the history
  4. update docstring more

    boneskull committed Sep 11, 2020
    Configuration menu
    Copy the full SHA
    84b34cc View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    0034079 View commit details
    Browse the repository at this point in the history
  6. doc updates

    boneskull committed Sep 11, 2020
    Configuration menu
    Copy the full SHA
    d349208 View commit details
    Browse the repository at this point in the history
  7. doc formatting tweaks

    boneskull committed Sep 11, 2020
    Configuration menu
    Copy the full SHA
    1d5cd77 View commit details
    Browse the repository at this point in the history
  8. docstring tweaks

    boneskull committed Sep 11, 2020
    Configuration menu
    Copy the full SHA
    d64e82a View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    4dbdca3 View commit details
    Browse the repository at this point in the history

Commits on Sep 14, 2020

  1. review updates

    boneskull committed Sep 14, 2020
    Configuration menu
    Copy the full SHA
    97f7e88 View commit details
    Browse the repository at this point in the history

Commits on Sep 16, 2020

  1. Configuration menu
    Copy the full SHA
    b2be252 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    694f9c6 View commit details
    Browse the repository at this point in the history

Commits on Sep 17, 2020

  1. update signature in util.md

    boneskull committed Sep 17, 2020
    Configuration menu
    Copy the full SHA
    3a7f3b1 View commit details
    Browse the repository at this point in the history