Skip to content

Commit

Permalink
Merge pull request #347 from Galooshi/importjsd-start
Browse files Browse the repository at this point in the history
Default importjsd to --help instead of start
  • Loading branch information
trotzig authored Aug 24, 2016
2 parents cd5cdc8 + 7f79c9f commit 728abe3
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions lib/daemon.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,10 @@ commander.command('logpath')
});

export default function daemon(argv: Array<string>) {
const args = argv;
if (args.length <= 2) {
// no arguments were given, so default to start
args.push('start');
}
commander.parse(argv);

commander.parse(args);
if (argv.length <= 2) {
// no arguments were given, so default to help
commander.help();
}
}

0 comments on commit 728abe3

Please sign in to comment.