[macruby-changes] [4711] DietRB/trunk/bin/dietrb
source_changes at macosforge.org
source_changes at macosforge.org
Fri Oct 8 04:03:09 PDT 2010
Revision: 4711
http://trac.macosforge.org/projects/ruby/changeset/4711
Author: eloy.de.enige at gmail.com
Date: 2010-10-08 04:03:08 -0700 (Fri, 08 Oct 2010)
Log Message:
-----------
Add option to bin to disable inspect output
From: Eloy Duran <eloy.de.enige at gmail.com>
Modified Paths:
--------------
DietRB/trunk/bin/dietrb
Modified: DietRB/trunk/bin/dietrb
===================================================================
--- DietRB/trunk/bin/dietrb 2010-10-08 11:03:00 UTC (rev 4710)
+++ DietRB/trunk/bin/dietrb 2010-10-08 11:03:08 UTC (rev 4711)
@@ -14,6 +14,7 @@
opt.on("-r load-lib", "Loads the given library (same as `ruby -r')") { |lib| require lib }
opt.on("-d", "Set $DEBUG to true (same as `ruby -d')") { $DEBUG = true }
opt.on("-I path", "Add path to $LOAD_PATH") { |path| $LOAD_PATH.unshift(path) }
+ opt.on("--noinspect", "Don't use inspect for output") { IRB.formatter.inspect = false }
opt.on("--simple-prompt", "Simple prompt mode") { IRB.formatter.prompt = :simple }
opt.on("--noprompt", "No prompt mode") { IRB.formatter.prompt = nil }
opt.on("-v", "--version", "Print the version of #{bin}") do
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20101008/5a163c60/attachment.html>
More information about the macruby-changes
mailing list