Skip to content

Commit f0f88d5

Browse files
Merge pull request #253 from roshan04/fix_cli_help_command
Fix cli help command
2 parents d77645e + bae9551 commit f0f88d5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

bin/runner.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ var argv = yargs
6767
.showHelpOnFail(false, Constants.cliMessages.VERSION.HELP)
6868
.demand(1, Constants.cliMessages.VERSION.DEMAND)
6969
.command('init', Constants.cliMessages.INIT.INFO, function(yargs) {
70-
let rawArgv = yargs.argv;
70+
let rawArgv = process.argv.slice(2);
7171
argv = yargs
7272
.usage("usage: $0 init [filename] [options]")
7373
.options({
@@ -87,7 +87,7 @@ var argv = yargs
8787
}
8888
})
8989
.command('build-info', Constants.cliMessages.BUILD.INFO, function(yargs) {
90-
let rawArgv = yargs.argv;
90+
let rawArgv = process.argv.slice(2);
9191
argv = yargs
9292
.usage('usage: $0 <buildId>')
9393
.demand(1, Constants.cliMessages.BUILD.DEMAND)
@@ -103,7 +103,7 @@ var argv = yargs
103103
}
104104
})
105105
.command('build-stop', Constants.cliMessages.BUILD.STOP, function (yargs) {
106-
let rawArgv = yargs.argv;
106+
let rawArgv = process.argv.slice(2);
107107
argv = yargs
108108
.usage('usage: $0 <buildId>')
109109
.demand(1, Constants.cliMessages.BUILD.DEMAND)
@@ -119,7 +119,7 @@ var argv = yargs
119119
}
120120
})
121121
.command('run', Constants.cliMessages.RUN.INFO, function(yargs) {
122-
let rawArgv = yargs.argv;
122+
let rawArgv = process.argv.slice(2);
123123
argv = yargs
124124
.usage('usage: $0 run <options>')
125125
.options({
@@ -246,7 +246,7 @@ var argv = yargs
246246
}
247247
})
248248
.command('generate-report', Constants.cliMessages.GENERATE_REPORT.INFO, function(yargs) {
249-
let rawArgv = yargs.argv;
249+
let rawArgv = process.argv.slice(2);
250250
argv = yargs
251251
.usage('usage: $0 generate-report <buildId>')
252252
.demand(1, Constants.cliMessages.BUILD.DEMAND)
@@ -262,7 +262,7 @@ var argv = yargs
262262
}
263263
})
264264
.command('generate-downloads', Constants.cliMessages.GENERATE_DOWNLOADS.INFO, function(yargs) {
265-
let rawArgv = yargs.argv;
265+
let rawArgv = process.argv.slice(2);
266266
argv = yargs
267267
.usage('usage: $0 generate-downloads <buildId>')
268268
.demand(1, Constants.cliMessages.BUILD.DEMAND)

0 commit comments

Comments
 (0)