Skip to content

Commit

Permalink
fix --config flag
Browse files Browse the repository at this point in the history
  • Loading branch information
graingert authored and danielstjules committed Aug 15, 2017
1 parent b49ec02 commit 931241d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/jsinspect
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ program
'number of nodes (default: 30)', parseInt)
.option('-m, --min-instances <number>',
'min instances for a match (default: 2)', parseInt)
.option('-c, --config',
'path to config file (default: .jsinspectrc)')
.option('-c, --config [config]',
'path to config file [.jsinspectrc]', '.jsinspectrc')
.option('-r, --reporter [default|json|pmd]',
'specify the reporter to use')
.option('-I, --no-identifiers', 'do not match identifiers')
Expand All @@ -35,7 +35,7 @@ program
.parse(process.argv);

// Check and parse the config file, if it exists
var rcPath = path.resolve(process.cwd(), program.config || '.jsinspectrc');
var rcPath = path.resolve(process.cwd(), program.config);
var opts = {encoding: 'utf8'};
var rcContents, rc, paths;

Expand Down

0 comments on commit 931241d

Please sign in to comment.