Skip to content

Commit

Permalink
cercing only arg to array in applyConfiguration
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Kliment committed Jan 13, 2015
1 parent 67d145c commit 5c96ca7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
5 changes: 0 additions & 5 deletions bin/dredd
Expand Up @@ -45,11 +45,6 @@ if(!Array.isArray(argv['path'])){
argv['path'] = argv['p'] = [argv['path']];
}

// transform only and x argument to array if it's not
if(!Array.isArray(argv['only'])){
argv['only'] = argv['x'] = [argv['only']];
}

// some shells are automatically expanding globs and concating result as arguments
// so I'm taking last argument as API endpoint server URL and removing it forom optimist's args
var server = argv._[argv._.length - 1];
Expand Down
1 change: 1 addition & 0 deletions src/apply-configuration.coffee
Expand Up @@ -44,6 +44,7 @@ applyConfiguration = (config) ->
configuration.options.output = coerceToArray(configuration.options.output)
configuration.options.header = coerceToArray(configuration.options.header)
configuration.options.method = coerceToArray(configuration.options.method)
configuration.options.only = coerceToArray(configuration.options.only)

for method in configuration.options.method
method.toUpperCase()
Expand Down

0 comments on commit 5c96ca7

Please sign in to comment.