Skip to content
Permalink
Browse files

fix(starter): fix double dash arg pass through

ISSUES CLOSED: #215
  • Loading branch information
MarshallOfSound authored and malept committed May 23, 2017
1 parent 8f5f969 commit 0379e5fc2891f68eb795ef3bb1804c03122f22bf
Showing with 9 additions and 0 deletions.
  1. +9 −0 src/electron-forge.js
@@ -8,6 +8,15 @@ import asyncOra from './util/ora-handler';
import checkSystem from './util/check-system';
import config from './util/config';

const originalSC = program.executeSubCommand.bind(program);
program.executeSubCommand = (argv, args, unknown) => {
let newArgs = [].concat(args[0]).concat(unknown);
if (args.length > 1) {
newArgs = args.concat('--').concat(args.slice(1));
}
return originalSC(argv, newArgs, []);
};

program
.version(require('../package.json').version)
.option('--verbose', 'Enables verbose mode')

0 comments on commit 0379e5f

Please sign in to comment.
You can’t perform that action at this time.