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

Commit

Permalink
fix(cli): remove boolean verbose and stack trace options
Browse files Browse the repository at this point in the history
Also add better description for what the command line options are.

Tiny breaking change:
  Rename the 'includeStackTrace' command line option to 'stackTrace' for brevity.
  • Loading branch information
juliemr committed Nov 8, 2013
1 parent 2fc36c0 commit bf5b076
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions lib/cli.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
/**
* The command line interface for interacting with the Protractor runner.
* It takes care of parsing the config file and command line options.
*
* Values from command line options override values from the config.
*/

var util = require('util');
var path = require('path')
var fs = require('fs');
var runner = require('./runner.js');
var argv = require('optimist').
usage('Usage: protractor [options] [config]').
usage('Usage: protractor [options] [configFile]\n' +
'The [options] object will override values from the config file.\n' +
'See the reference config for a full list of options.').
describe('version', 'Print Protractor version').
describe('browser', 'Browsername, e.g. chrome or firefox').
describe('seleniumAddress', 'A running seleium address to use').
Expand All @@ -18,18 +22,16 @@ var argv = require('optimist').
describe('rootElement', 'Element housing ng-app, if not html or body').
describe('specs', 'Comma-separated list of files to test').
describe('verbose', 'Print full spec names').
describe('includeStackTrace', 'Print stack trace on error').
describe('stackTrace', 'Print stack trace on error').
describe('params', 'Param object to be passed to the tests').
alias('browser', 'capabilities.browserName').
alias('name', 'capabilities.name').
alias('platform', 'capabilities.platform').
alias('platform-version', 'capabilities.version').
alias('tags', 'capabilities.tags').
alias('build', 'capabilities.build').
boolean('verbose').
boolean('includeStackTrace').
alias('verbose', 'jasmineNodeOpts.isVerbose').
alias('includeStackTrace', 'jasmineNodeOpts.includeStackTrace').
alias('stackTrace', 'jasmineNodeOpts.includeStackTrace').
check(function(arg) {
if (arg._.length > 1) {
throw 'Error: more than one config file specified'
Expand Down

0 comments on commit bf5b076

Please sign in to comment.