Skip to content

Commit

Permalink
fix(cli): fix env options resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
antongolub committed Mar 24, 2021
1 parent 481ce14 commit 2adb481
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main/ts/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,18 @@ const flags = new Command()
.default(env.YAF_AUDIT_LEVEL),
)
.option(
'--dry-run',
'--dry-run [bool]',
'Get an idea of what audit fix will do',
env.YAF_DRY_RUN_FORCE,
)
.option(
'--force',
'--force [bool]',
'Have audit fix install semver-major updates to toplevel dependencies, not just semver-compatible ones',
env.YAF_FORCE,
)
.option('--loglevel [level]', 'Set custom log level', env.YAF_LOGLEVEL)
.option(
'--legacy-peer-deps',
'--legacy-peer-deps [bool]',
'Accept an incorrect (potentially broken) deps resolution',
env.YAF_LEGACY_PEER_DEPS,
)
Expand All @@ -50,9 +50,9 @@ const flags = new Command()
env.YAF_PACKAGE_LOCK_ONLY,
)
.option('--registry [registry]', 'Custom registry url', env.YAF_REGISTRY)
.option('--silent', 'Disable log output', env.YAF_SILENT)
.option('--silent [bool]', 'Disable log output', env.YAF_SILENT)
.option('--temp [dir]', 'Directory for temporary assets')
.option('--verbose', 'Switch log level to verbose/debug', env.YAF_VERBOSE)
.option('--verbose [bool]', 'Switch log level to verbose/debug', env.YAF_VERBOSE)
.allowUnknownOption()
.parse(process.argv)
.opts()
Expand Down
1 change: 1 addition & 0 deletions src/main/ts/stages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export const printRuntimeDigest: TCallback = ({
yarnAuditFixVersion,
temp,
cwd,
flags
},
undefined,
2,
Expand Down

0 comments on commit 2adb481

Please sign in to comment.