Skip to content

Commit 6cd42e2

Browse files
committed
fixes webpack#173
1 parent 1640c65 commit 6cd42e2

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

bin/config-optimist.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
module.exports = function(optimist) {
22
optimist
33

4+
.boolean("help").alias("help", "h").alias("help", "?").describe("help")
5+
46
.string("config").describe("config")
57

68
.string("context").describe("context")

bin/convert-argv.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ module.exports = function(optimist, argv, convertOptions) {
77

88
var options = {};
99

10+
// Help
11+
if(argv.help) {
12+
optimist.showHelp();
13+
process.exit(-1);
14+
}
15+
1016
// Shortcuts
1117
if(argv.d) {
1218
argv.debug = true;

0 commit comments

Comments
 (0)