Skip to content

Commit 7d42c90

Browse files
authored
Merge pull request #30 from mydea/fn/fix-commander-usage
fix: Fix commander usage after upgrade to 7.x
2 parents 1540c1f + 5e64dfb commit 7d42c90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/update-dep.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ async function yarnUpdateDependency() {
3030
.option('-ny, --no-yarn', 'Do not auto-run "yarn install"')
3131
.parse(process.argv);
3232

33-
let { targetVersion, package, caret, exact, yarn: runYarn } = program;
33+
let { targetVersion, package, caret, exact, yarn: runYarn } = program.opts();
3434

3535
package = package || posPackage;
3636
let version = targetVersion || posVersion;

0 commit comments

Comments
 (0)