Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: 75lb/command-line-args
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v5.1.3
Choose a base ref
...
head repository: 75lb/command-line-args
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v5.2.0
Choose a head ref
  • 7 commits
  • 13 files changed
  • 2 contributors

Commits on Jul 20, 2021

  1. Support case insensitive command line options

    Adds a caseSensitive field to OptionDefinition to support parsing
    certain arguments in a case insensitive manner. The UNIX-based command
    line is traditionally case sensitive, but the Windows command line is
    not. The default behavior continues to treat all command line arguments
    as case sensitive.
    Bryan Williams committed Jul 20, 2021
    Copy the full SHA
    19bd60a View commit details

Commits on Jul 26, 2021

  1. CR fixes

    - Set caseInsensitive flag at parse-level rather than at option-level
    - Make aliases respect caseInsensitive flag
    Bryan Williams committed Jul 26, 2021
    Copy the full SHA
    e98c7be View commit details
  2. Node.js 4.x compatibility

    Removes the usage of default parameter values
    Bryan Williams committed Jul 26, 2021
    Copy the full SHA
    654bbba View commit details

Commits on Jul 29, 2021

  1. upgrade rollup and jsdoc-to-markdown

    De-linting.. minor doc updates
    75lb committed Jul 29, 2021
    Copy the full SHA
    cff71b1 View commit details
  2. Copy the full SHA
    f7df343 View commit details
  3. update docs

    75lb committed Jul 29, 2021
    Copy the full SHA
    f6b9735 View commit details
  4. 5.2.0

    75lb committed Jul 29, 2021
    Copy the full SHA
    78bc342 View commit details
Showing with 1,377 additions and 1,043 deletions.
  1. +1 −1 .github/workflows/node.js.yml
  2. +244 −220 dist/index.js
  3. +242 −218 dist/index.mjs
  4. +274 −139 dist/tests.js
  5. +2 −1 doc/API.md
  6. +5 −3 index.mjs
  7. +4 −3 lib/argv-parser.mjs
  8. +26 −10 lib/option-definitions.mjs
  9. +453 −442 package-lock.json
  10. +6 −6 package.json
  11. +72 −0 test/case-insensitive.mjs
  12. +47 −0 test/exceptions-invalid-definition.mjs
  13. +1 −0 test/tests.mjs
2 changes: 1 addition & 1 deletion .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -25,4 +25,4 @@ jobs:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm install
- run: npm run travis-test
- run: npm run test:ci
Loading