Skip to content

Commit

Permalink
Make path argument optional (#194)
Browse files Browse the repository at this point in the history
  • Loading branch information
ddzz authored Sep 6, 2021
1 parent d62afc5 commit 4a8fa26
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ To install:
yarn add --dev check-dependency-version-consistency
```

To run, pass the path to the workspace root:
To run, use this command and optionally pass the path to the workspace root:

```sh
yarn check-dependency-version-consistency .
Expand Down
4 changes: 2 additions & 2 deletions bin/check-dependency-version-consistency.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env node
/* eslint node/shebang:"off" -- shebang needed so compiled code gets interpreted as JS */

import { Command } from 'commander';
import { Command, Argument } from 'commander';
import { readFileSync } from 'node:fs';
import {
calculateVersionsForEachDependency,
Expand Down Expand Up @@ -37,7 +37,7 @@ function run() {

program
.version(getCurrentPackageVersion())
.argument('<path>', 'path to workspace root')
.addArgument(new Argument('[path]', 'path to workspace root').default('.'))
.option(
'--fix',
'Whether to autofix inconsistencies (using highest version present)',
Expand Down

0 comments on commit 4a8fa26

Please sign in to comment.