From 93852d4abbe80cbf9782bf344137c0371a69773a Mon Sep 17 00:00:00 2001 From: Lloyd Brookes Date: Tue, 17 Nov 2015 16:52:01 +0000 Subject: [PATCH] usage descriptions --- lib/cli-options.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/cli-options.js b/lib/cli-options.js index f63a472..f74fe72 100644 --- a/lib/cli-options.js +++ b/lib/cli-options.js @@ -17,7 +17,7 @@ module.exports = { description: 'Enable gzip compression, reduces bandwidth.', group: 'server' }, { - name: 'forbid', alias: 'b', type: String, multiple: true, typeLabel: '[underline]{regexp} ...', + name: 'forbid', alias: 'b', type: String, multiple: true, typeLabel: '[underline]{path} ...', description: 'A list of forbidden routes', group: 'server' }, { @@ -26,11 +26,11 @@ module.exports = { }, { name: 'rewrite', alias: 'r', type: String, multiple: true, typeLabel: '[underline]{expression} ...', - description: 'A list of URL rewrite rules', group: 'server' + description: "A list of URL rewrite rules, e.g. '/from -> /to'", group: 'server' }, { - name: 'spa', alias: 's', type: String, - description: 'Single Page App page', group: 'server' + name: 'spa', alias: 's', type: String, typeLabel: '[underline]{file}', + description: 'Path to a Single Page App, e.g. app.html', group: 'server' }, { name: 'help', alias: 'h', type: Boolean, @@ -38,7 +38,7 @@ module.exports = { }, { name: 'config', type: Boolean, - description: 'Print the config found in [underline]{package.json} and/or [underline]{.local-web-server}', group: 'misc' + description: 'Print the config local-web-server would be launched with, then exit', group: 'misc' } ], usageData: {