From 35b39713667d597136fba7b71c2bd16743a55515 Mon Sep 17 00:00:00 2001 From: David Majda Date: Tue, 21 Jun 2016 16:18:03 +0200 Subject: [PATCH] bin/pegjs: Rename the -o option to -O This will make room for -o to mean --output instead of --optimize. Also, -O is more traditional option name for describing optimization config than -o. Part of #370. --- bin/pegjs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/pegjs b/bin/pegjs index ce4ce47..d15c06f 100755 --- a/bin/pegjs +++ b/bin/pegjs @@ -33,7 +33,7 @@ function printHelp() { 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(" -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"); @@ -164,11 +164,11 @@ while (args.length > 0 && isOption(args[0])) { options.trace = true; break; - case "-o": + case "-O": case "--optimize": nextArg(); if (args.length === 0) { - abort("Missing parameter of the -o/--optimize option."); + abort("Missing parameter of the -O/--optimize option."); } if (args[0] !== "speed" && args[0] !== "size") { abort("Optimization goal must be either \"speed\" or \"size\".");