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
refactor(cli): use util.parseArgs to parse arguments (#283)
* feat: use util.parseArgs
* refactor: destrucure argument in parseCLIArguments
This moved argument destructuring to the parseCliArguments function, renames values to options,
renames positionals to patterns, and moves the try catch to the run function
* refactor: move default pattern to parseCliArgument
* fix: typo isQuiet->shouldBeQuiet
* fix: show help on illegal option value
* test: added tests for illegal argument usage
* feat: add support for --no-check and --no-quiet
* Revert "feat: add support for --no-check and --no-quiet"
This reverts commit 10a6067.
* test: add tests which throw for --no-* arguments
* test: update tests
* test: update snapshots
* style: linting
* refactor: use `Object.hasOwn`
---------
Co-authored-by: fisker Cheung <lionkay@gmail.com>
0 commit comments