From 47e8605f50f3e07dcdb90fe797d22580ca40abb1 Mon Sep 17 00:00:00 2001 From: hacksalot Date: Sat, 9 Jan 2016 05:30:12 -0500 Subject: [PATCH] Handle args in mock/passthrough case. --- src/main.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.js b/src/main.js index ca1ddca..f1a4c2a 100644 --- a/src/main.js +++ b/src/main.js @@ -31,7 +31,7 @@ */ var main = module.exports = function( args ) { - var args = initialize( args ); + args = initialize( args ); // Create the top-level (application) command... var program = new Command('hackmyresume') @@ -122,12 +122,12 @@ /** Massage command-line args and setup Commander.js. */ - function initialize( args ) { + function initialize( ar ) { logMsg( title ); // Support case-insensitive sub-commands (build, generate, validate, etc.).. - var oVerb, verb = '', args = args.slice(), cleanArgs = args.slice(2); + var oVerb, verb = '', args = ar.slice(), cleanArgs = args.slice(2); if( cleanArgs.length ) { var verbIdx = _.findIndex( cleanArgs, function(v){ return v[0] !== '-'; }); if( verbIdx !== -1 ) {