2015-11-11 17:53:01 +00:00
module . exports = {
definitions : [
{
name : 'port' , alias : 'p' , type : Number , defaultOption : true ,
description : 'Web server port' , group : 'server'
} ,
{
name : 'log-format' , alias : 'f' , type : String ,
description : "If a format is supplied an access log is written to stdout. If not, a statistics view is displayed. Use a preset ('none', 'dev','combined', 'short', 'tiny' or 'logstalgia') or supply a custom format (e.g. ':method -> :url')." , group : 'server'
} ,
{
name : 'directory' , alias : 'd' , type : String ,
description : 'Root directory, defaults to the current directory' , group : 'server'
} ,
{
name : 'compress' , alias : 'c' , type : Boolean ,
description : 'Enable gzip compression, reduces bandwidth.' , group : 'server'
} ,
{
2015-11-15 15:51:18 +00:00
name : 'no-cache' , alias : 'n' , type : Boolean ,
2015-11-15 21:15:25 +00:00
description : 'Disable etag-based caching - forces loading from disk each request.' , group : 'server'
2015-11-15 15:51:18 +00:00
} ,
{
2015-11-11 17:53:01 +00:00
name : 'help' , alias : 'h' , type : Boolean ,
description : 'Print these usage instructions' , group : 'misc'
} ,
{
name : 'config' , type : Boolean ,
description : 'Print the stored config' , group : 'misc'
}
] ,
usageData : {
title : 'local-web-server' ,
description : 'Lightweight static web server, zero configuration.' ,
footer : 'Project home: [underline]{https://github.com/75lb/local-web-server}' ,
synopsis : [
'$ ws <server options>' ,
'$ ws --config' ,
'$ ws --help'
] ,
groups : {
server : 'Server' ,
misc : 'Misc'
}
2015-10-30 11:31:59 +00:00
}
2015-11-11 17:53:01 +00:00
}