Skip to content

Commit

Permalink
reorder command line options
Browse files Browse the repository at this point in the history
  • Loading branch information
gkz committed Jul 26, 2012
1 parent ae6ef97 commit 6c1859a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions lib/command.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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());
Expand Down
4 changes: 2 additions & 2 deletions src/command.ls
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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 * ' '

Expand Down

0 comments on commit 6c1859a

Please sign in to comment.