unnali/rouge — pull request #26 by noprompt (2012-12-23 22:30:07+00:00)
Title: Updates to the CLI

Just a few updates to `bin/rouge` here:

- `-e`, `--eval` print non-nil results
- start time is recorded only when the `--time-startup` option is specified
- a new option `-` allows scripts to be evaluated from `STDIN`, non-nil results are printed (note this doesn't appear as an option within the help summary because it causes problems with `OptionParser`)
- when a file is given with additional arguments those arguments are available in `rouge.core/*command-line-args*`

```clojure
;; foo.rg
(ns toast
(:use rouge.core ruby))

(puts
(.inspect *command-line-args*))
```

```shell
$ bin/rouge foo.rg eggs bacon
["eggs", "bacon"]
```