From df05ce3f2a64103d6ae5051de615657d84ca5c35 Mon Sep 17 00:00:00 2001 From: loicgasser Date: Thu, 8 Mar 2018 16:09:16 +0000 Subject: [PATCH] Add default val in description --- docs/usage.rst | 4 ++-- src/main.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/usage.rst b/docs/usage.rst index ed738c1..0b3586b 100644 --- a/docs/usage.rst +++ b/docs/usage.rst @@ -13,9 +13,9 @@ Getting started -h, --help output usage information --mbtiles MBTiles file (uses demo configuration); ignored if the configuration file is also specified - -c, --config Configuration file + -c, --config Configuration file [config.json] -b, --bind
Bind address - -p, --port Port + -p, --port Port [8080] -C|--no-cors Disable Cross-origin resource sharing headers -V, --verbose More verbose output -v, --version Version info diff --git a/src/main.js b/src/main.js index b44fbb5..e4d635d 100644 --- a/src/main.js +++ b/src/main.js @@ -20,7 +20,7 @@ var opts = require('commander') ) .option( '-c, --config ', - 'Configuration file', + 'Configuration file [config.json]', 'config.json' ) .option( @@ -29,7 +29,7 @@ var opts = require('commander') ) .option( '-p, --port ', - 'Port', + 'Port [8080]', parseInt, 8080 )