From cf1d224b37509ece89b290589fed26e84c27641f Mon Sep 17 00:00:00 2001 From: "Jean M. Lescure" Date: Mon, 14 Dec 2020 10:23:34 -0600 Subject: [PATCH] docs: update parameters in help and readme --- README.md | 9 +++++---- bin/fasthr | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index f291619..8928ea4 100644 --- a/README.md +++ b/README.md @@ -55,16 +55,17 @@ Usage: node fasthr [OPTION] Options: - -d, --dir root directory where to serve files from. - -p, --port port to run server on. - -l, --livePort port to run livereload on. + -d, --dir=ARG root directory where to serve files from (default: current directory). + -p, --port=ARG port to run server on (default: 3000). + -a, --address=ARG address to run server on (default: 0.0.0.0). + -l, --livePort=ARG port to run livereload on (default: 35729). -h, --help display this help ``` ## Development I chose Rollup to handle the transpiling, compression, and any other transformations needed to get -your Typescript code running as quickly and performant as possible. +this repo's Typescript code running as quickly and performant as possible. ``` yarn dev diff --git a/bin/fasthr b/bin/fasthr index d7fe245..26d843d 100755 --- a/bin/fasthr +++ b/bin/fasthr @@ -5,7 +5,7 @@ const {options} = require('./getopts').create([ ['d', 'dir=ARG', 'root directory where to serve files from (default: current directory).'], ['p', 'port=ARG', 'port to run server on (default: 3000).'], ['a', 'address=ARG', 'address to run server on (default: 0.0.0.0).'], - ['l', 'livePort=ARG', 'port to run livereload on.'], + ['l', 'livePort=ARG', 'port to run livereload on (default: 35729).'], ]) .bindHelp() .parseSystem();