Skip to content

Commit

Permalink
Fix usage when no args are passed
Browse files Browse the repository at this point in the history
  • Loading branch information
CapacitorSet committed Feb 11, 2018
1 parent fc7056f commit 31a60bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion argv.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const allFlags = [...flags.run, ...flags.export].reduce((set, item) => {
return set;
}, []);
const argv = commandLineArgs(allFlags, {partial: true});
if (argv._unknown.some(isFlag)) {
if (argv._unknown != null && argv._unknown.some(isFlag)) {
throw new Error(`Unknown arguments: ${unknownArguments.filter(isFlag)}`);
}

Expand Down

0 comments on commit 31a60bb

Please sign in to comment.