Skip to content

Commit

Permalink
fix(cli): --no-pull arg resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
medikoo committed Nov 9, 2018
1 parent 03b056a commit 61cd13a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions bin/dev-package.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ require("log4-nodejs")({ defaultNamespace: "dev-package" });

const meta = require("../package");

const argv = require("minimist")(process.argv.slice(2), { boolean: ["no-pull", "push"] });
const argv = require("minimist")(process.argv.slice(2), { boolean: ["push"] });

const [command, packageName] = argv._;

Expand All @@ -37,4 +37,7 @@ if (!supportedCommands.has(command)) {
process.exit(1);
}

require("../lib/private/cli")(command, packageName, { pull: !argv["no-pull"], push: argv.push });
require("../lib/private/cli")(command, packageName, {
pull: argv.pull !== false,
push: argv.push !== false
});

0 comments on commit 61cd13a

Please sign in to comment.