Skip to content

Commit 3a7a87e

Browse files
author
Phil Sturgeon
authored
Fix #217 & #221: command [options] or [options] command (#229)
CommandJS advertises both are available, but we were getting a false positive from when deciding if we should show the help page or not.
1 parent cb361c9 commit 3a7a87e

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
77
## [Unreleased]
88
### Added
99
- `notContain` rulesets can now support pattern matching. ([#208] via [@erunion])
10+
### Fixed
11+
- Support options after the command name, and at the end of the command ([#229])
1012

1113
[@erunion]: https://github.com/erunion
1214
[#208]: https://github.com/wework/speccy/issues/208
15+
[#229]: https://github.com/wework/speccy/pull/229
1316

1417
## [0.8.5] - 2018-11-15
1518
### Added

speccy.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,6 @@ program
5151

5252
program.parse(process.argv);
5353

54-
if (!program.args.length) program.help();
54+
if (!process.argv.slice(2).length) {
55+
program.help();
56+
}

0 commit comments

Comments
 (0)