diff --git a/lib/daemon.js b/lib/daemon.js index bd58c7b8..474023be 100644 --- a/lib/daemon.js +++ b/lib/daemon.js @@ -109,11 +109,10 @@ commander.command('logpath') }); export default function daemon(argv: Array) { - 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(); + } }