new usage
This commit is contained in:
40
lib/cli-options.js
Normal file
40
lib/cli-options.js
Normal file
@ -0,0 +1,40 @@
|
||||
module.exports = [
|
||||
{
|
||||
groups: "Server",
|
||||
options: [
|
||||
{
|
||||
name: "port", alias: "p", type: Number, defaultOption: true,
|
||||
description: "Web server port"
|
||||
},
|
||||
{
|
||||
name: "log-format", alias: "f", type: String,
|
||||
description: "Access log format, written to stdout. Use one of \n'none', 'dev', 'default', 'short', 'tiny' or 'logstalgia'"
|
||||
},
|
||||
{
|
||||
name: "directory", alias: "d", type: String,
|
||||
description: "Root directory, defaults to the current directory"
|
||||
},
|
||||
{
|
||||
name: "compress", alias: "c", type: Boolean,
|
||||
description: "Enables compression"
|
||||
},
|
||||
{
|
||||
name: "refreshRate", alias: "r", type: Number,
|
||||
description: "Statistics view refresh rate in ms. Defaults to 500."
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
groups: "Misc",
|
||||
options: [
|
||||
{
|
||||
name: "help", alias: "h", type: Boolean,
|
||||
description: "Print these usage instructions"
|
||||
},
|
||||
{
|
||||
name: "config", type: Boolean,
|
||||
description: "Prints the stored config"
|
||||
}
|
||||
]
|
||||
}
|
||||
];
|
Reference in New Issue
Block a user