Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Commit bf5b076

Browse files
committed
fix(cli): remove boolean verbose and stack trace options
Also add better description for what the command line options are. Tiny breaking change: Rename the 'includeStackTrace' command line option to 'stackTrace' for brevity.
1 parent 2fc36c0 commit bf5b076

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

lib/cli.js

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
/**
22
* The command line interface for interacting with the Protractor runner.
33
* It takes care of parsing the config file and command line options.
4+
*
5+
* Values from command line options override values from the config.
46
*/
57

68
var util = require('util');
79
var path = require('path')
810
var fs = require('fs');
911
var runner = require('./runner.js');
1012
var argv = require('optimist').
11-
usage('Usage: protractor [options] [config]').
13+
usage('Usage: protractor [options] [configFile]\n' +
14+
'The [options] object will override values from the config file.\n' +
15+
'See the reference config for a full list of options.').
1216
describe('version', 'Print Protractor version').
1317
describe('browser', 'Browsername, e.g. chrome or firefox').
1418
describe('seleniumAddress', 'A running seleium address to use').
@@ -18,18 +22,16 @@ var argv = require('optimist').
1822
describe('rootElement', 'Element housing ng-app, if not html or body').
1923
describe('specs', 'Comma-separated list of files to test').
2024
describe('verbose', 'Print full spec names').
21-
describe('includeStackTrace', 'Print stack trace on error').
25+
describe('stackTrace', 'Print stack trace on error').
2226
describe('params', 'Param object to be passed to the tests').
2327
alias('browser', 'capabilities.browserName').
2428
alias('name', 'capabilities.name').
2529
alias('platform', 'capabilities.platform').
2630
alias('platform-version', 'capabilities.version').
2731
alias('tags', 'capabilities.tags').
2832
alias('build', 'capabilities.build').
29-
boolean('verbose').
30-
boolean('includeStackTrace').
3133
alias('verbose', 'jasmineNodeOpts.isVerbose').
32-
alias('includeStackTrace', 'jasmineNodeOpts.includeStackTrace').
34+
alias('stackTrace', 'jasmineNodeOpts.includeStackTrace').
3335
check(function(arg) {
3436
if (arg._.length > 1) {
3537
throw 'Error: more than one config file specified'

0 commit comments

Comments
 (0)