From 6c1859ae99ac713faf4d75e5dd10314198b4d22c Mon Sep 17 00:00:00 2001 From: George Zahariev Date: Wed, 25 Jul 2012 18:29:30 -0700 Subject: [PATCH] reorder command line options --- lib/command.js | 6 +++--- src/command.ls | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/command.js b/lib/command.js index 659748d46..89e33a032 100755 --- a/lib/command.js +++ b/lib/command.js @@ -26,6 +26,8 @@ global.ppp = function(it){ $args = (o = require('./optparse')({ interactive: 'start REPL; use ^J for multiline input', compile: 'compile to JavaScript and save as .js files', + prelude: ['automatically import prelude.ls', '', 'd'], + 'const': ['compile all variables as constants', '', 'k'], output: ['compile into the specified directory', 'DIR'], watch: 'watch scripts for changes, and repeat', stdin: 'read stdin', @@ -39,9 +41,7 @@ $args = (o = require('./optparse')({ json: 'print/compile as JSON', nodejs: ['pass options through to the "node" binary', 'ARGS+', ''], version: 'display version', - help: 'display this', - prelude: ['automatically import prelude.ls', '', 'd'], - 'const': ['compile all variables as constants', '', 'k'] + help: 'display this' })).$args; if (that = join$.call(o.$unknowns, ' ')) { die("Unrecognized option(s): " + that + "\n\n" + help()); diff --git a/src/command.ls b/src/command.ls index 4192b55e6..8c3b20659 100644 --- a/src/command.ls +++ b/src/command.ls @@ -19,6 +19,8 @@ global import {$args} = o = require(\./optparse) do interactive : 'start REPL; use ^J for multiline input' compile : 'compile to JavaScript and save as .js files' + prelude :['automatically import prelude.ls' '' \d] + const :['compile all variables as constants' '' \k] output :['compile into the specified directory' \DIR] watch : 'watch scripts for changes, and repeat' stdin : 'read stdin' @@ -33,8 +35,6 @@ global import nodejs :['pass options through to the "node" binary' \ARGS+ ''] version : 'display version' help : 'display this' - prelude :['automatically import prelude.ls' '' \d] - const :['compile all variables as constants' '' \k] die "Unrecognized option(s): #that\n\n#{help!}" if o.$unknowns * ' '