From 984ac0fa62f9bb0e3f6882376b9ca0dc1813f864 Mon Sep 17 00:00:00 2001 From: Lloyd Brookes Date: Sun, 9 Feb 2014 09:29:30 +0100 Subject: [PATCH] readme --- README.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index a21e8b9..1d1d7ff 100644 --- a/README.md +++ b/README.md @@ -21,26 +21,26 @@ $ npm install -g local-web-server Usage ----- ``` -usage: ws [--directory|-d ] [--port|-p ] [--log-format|-f dev|default|short|tiny] +ws [--directory|-d ] [--port|-p ] [--log-format|-f dev|default|short|tiny] ``` From the folder you wish to serve, run: -```sh +
 $ ws
-serving at http://localhost:8000
-```
+serving at http://localhost:8000
+
If you wish to serve a different directory, run: -```sh +
 $ ws -d ~/mysite/
-serving ~/mysite at http://localhost:8000
-```
+serving /Users/Lloyd/mysite at http://localhost:8000
+
If you wish to override the default port (8000), use `--port` or `-p`: -```sh +
 $ ws --port 9000
-serving at http://localhost:9000
-```
+serving at http://localhost:9000
+
Use a built-in or custom [Connect logger format](http://www.senchalabs.org/connect/logger.html) with `--log-format`: ```sh