From ff330a0d4bc5e79473804f2d75db99694a30b249 Mon Sep 17 00:00:00 2001 From: David Majda Date: Wed, 22 Jun 2016 09:04:33 +0200 Subject: [PATCH] bin/pegjs: Order options in help text alphabetically --- bin/pegjs | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/bin/pegjs b/bin/pegjs index fe03a92..3250367 100755 --- a/bin/pegjs +++ b/bin/pegjs @@ -16,28 +16,28 @@ function printHelp() { console.log("Usage: pegjs [options] [--] []"); console.log(""); console.log("Options:"); - console.log(" -o, --output output file"); - console.log(" -e, --export-var name of a global variable into which the"); - console.log(" parser object is assigned to when no module"); - console.log(" loader is detected (default: \"\")"); - console.log(" -d, --dependency use specified dependency (can be specified"); - console.log(" multiple times)"); - console.log(" --cache make generated parser cache results"); console.log(" --allowed-start-rules comma-separated list of rules the generated"); console.log(" parser will be allowed to start parsing"); console.log(" from (default: the first rule in the"); console.log(" grammar)"); - console.log(" -O, --optimize select optimization for speed or size"); - console.log(" (default: speed)"); - console.log(" --trace enable tracing in generated parser"); - console.log(" --plugin use a specified plugin (can be specified"); + console.log(" --cache make generated parser cache results"); + console.log(" -d, --dependency use specified dependency (can be specified"); console.log(" multiple times)"); + console.log(" -e, --export-var name of a global variable into which the"); + console.log(" parser object is assigned to when no module"); + console.log(" loader is detected (default: \"\")"); console.log(" --extra-options additional options (in JSON format) to pass"); console.log(" to peg.generate"); console.log(" --extra-options-file file with additional options (in JSON"); console.log(" format) to pass to peg.generate"); - console.log(" -v, --version print version information and exit"); console.log(" -h, --help print help and exit"); + console.log(" -O, --optimize select optimization for speed or size"); + console.log(" (default: speed)"); + console.log(" -o, --output output file"); + console.log(" --plugin use a specified plugin (can be specified"); + console.log(" multiple times)"); + console.log(" --trace enable tracing in generated parser"); + console.log(" -v, --version print version information and exit"); } function exitSuccess() {