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

Commit d975836

Browse files
markeloghzoo
authored andcommitted
CLI: "auto-configure" argument should always be at the end
We still can't parse `jscs path --auto-configure`, but at least we will show meaningful error Fixes #1862 Closes gh-1863
1 parent ed4518d commit d975836

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bin/jscs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ program
1515
.usage('[options] <file ...>')
1616
.description('A code style linter for programmatically enforcing your style guide.')
1717
.option('-c, --config [path]', 'configuration file path')
18-
.option('--auto-configure [path]', 'auto-generate a JSCS configuration file')
18+
.option('--auto-configure <path> [paths]', 'auto-generate a JSCS configuration file')
1919
.option('-x, --fix', 'fix code style violations (applies to fixable violations)')
2020
.option('--extract <mask>', 'set file masks from which to extract JavaScript', function(value, memo) {
2121
return memo ? memo.concat(value) : [value];

0 commit comments

Comments
 (0)