diff --git a/README.md b/README.md index 5a96d4d3..fdb254de 100644 --- a/README.md +++ b/README.md @@ -22,12 +22,18 @@ If you prefer, you can also install the package globally using [Yarn](https://ya yarn global add serve ``` -Once that's done, you can run this command inside your project's directory: +Once that's done, you can run this command inside your project's directory... ```bash serve ``` +...or specify which folder you want to serve: + +```bash +serve folder_name +``` + Finally, run this command to see a list of all available options: ```bash diff --git a/bin/serve.js b/bin/serve.js index 539b12f3..00d7d07b 100755 --- a/bin/serve.js +++ b/bin/serve.js @@ -59,6 +59,7 @@ const getHelp = () => chalk` {bold $} {cyan serve} --help {bold $} {cyan serve} --version + {bold $} {cyan serve} folder_name {bold $} {cyan serve} [-l {underline listen_uri} [-l ...]] [{underline directory}] By default, {cyan serve} will listen on {bold 0.0.0.0:5000} and serve the @@ -82,7 +83,7 @@ const getHelp = () => chalk` -c, --config Specify custom path to \`serve.json\` -n, --no-clipboard Do not copy the local address to the clipboard - + -u, --no-compression Do not compress files --no-etag Send \`Last-Modified\` header instead of \`ETag\`