Permalink
Browse files

rp5 help message improved

  • Loading branch information...
1 parent 008c1bb commit 20755c1dea05b18a4bae228dc7849e71c3b6d81e Guillaume Pierronnet committed Sep 20, 2011
Showing with 14 additions and 2 deletions.
  1. +14 −2 lib/ruby-processing/runner.rb
View
16 lib/ruby-processing/runner.rb
@@ -8,13 +8,25 @@ module Processing
class Runner
HELP_MESSAGE = <<-EOS
- version: #{Processing::VERSION}
+ Version: #{Processing::VERSION}
Ruby-Processing is a little shim between Processing and JRuby that helps
you create sketches of code art.
Usage:
- rp5 [run | watch | live | create | app | applet | unpack] path/to/sketch
+ rp5 [run | watch | live | create [width height] | app | applet | unpack] path/to/sketch
+
+ run: run sketch once
+ watch: watch for changes on the file and relaunch it on the fly
+ live: launch sketch and give an interactive IRB shell
+ create: create new sketch. Use --bare to generate simpler sketches without a class
+ app: create an application version of the sketch
+ applet: create an applet version of the sketch
+ unpack: unpack samples or library
+
+ Common options:
+ --jruby: passed, use the installed version of jruby, instead of
+ our vendored jarred one (useful for gems).
Examples:
rp5 unpack samples

0 comments on commit 20755c1

Please sign in to comment.