From fb9b1ce57b3c69b4f7819015be87719204f77ef6 Mon Sep 17 00:00:00 2001 From: Forrest L Norvell Date: Wed, 14 Dec 2016 10:16:22 -0800 Subject: [PATCH] doc: fix syntax fencing Also, switched from `bash` to `console` for prettier command-line interaction. Credit: @adius Reviewed-By: @othiym23 --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e35a04f..a99531c 100644 --- a/README.md +++ b/README.md @@ -45,10 +45,11 @@ var nopt = require("nopt") // slice defaults to 2 , parsed = nopt(knownOpts, shortHands, process.argv, 2) console.log(parsed) +``` This would give you support for any of the following: -```bash +```console $ node my-program.js --foo "blerp" --no-flag { "foo" : "blerp", "flag" : false }