File tree 2 files changed +8
-2
lines changed 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 26
26
"server-destroy" : " ^1.0.1" ,
27
27
"underscore-db" : " ^0.9.1" ,
28
28
"update-notifier" : " ^0.5.0" ,
29
- "yargs" : " ^3.10 .0"
29
+ "yargs" : " ^4.2 .0"
30
30
},
31
31
"devDependencies" : {
32
32
"husky" : " ^0.6.1" ,
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ module.exports = function () {
8
8
updateNotifier ( { pkg : pkg } ) . notify ( )
9
9
10
10
var argv = yargs
11
+ . config ( 'config' )
11
12
. usage ( '$0 [options] <source>' )
12
13
. options ( {
13
14
port : {
@@ -26,7 +27,7 @@ module.exports = function () {
26
27
} ,
27
28
routes : {
28
29
alias : 'r' ,
29
- description : 'Load routes file'
30
+ description : 'Path to routes file'
30
31
} ,
31
32
static : {
32
33
alias : 's' ,
@@ -57,6 +58,11 @@ module.exports = function () {
57
58
quiet : {
58
59
alias : 'q' ,
59
60
description : 'Suppress log messages from output'
61
+ } ,
62
+ config : {
63
+ alias : 'c' ,
64
+ description : 'Path to config file' ,
65
+ default : 'json-server.json'
60
66
}
61
67
} )
62
68
. boolean ( 'watch' )
You can’t perform that action at this time.
0 commit comments