Tweaked 'redact --version' output.
[redact.git] / lib / redact / app.rb
index 7c5f39ee69334d8c2533712c142c95e7e32f1353..72175162e2424c86930db4166b8ab19d9c30246a 100644 (file)
@@ -1,5 +1,5 @@
 #--
-# $Id: app.rb 3 2005-03-26 19:21:15Z tilman $
+# $Id: app.rb 7 2005-03-28 16:27:18Z tilman $
 #
 # Copyright (c) 2005 Tilman Sauerbeck (tilman at code-monkey de)
 #
@@ -110,11 +110,7 @@ module Redact
                                end
 
                                o.on_tail("--version", "Show version") do
-                                       puts <<EOT
-redact #{Redact::VERSION}
-
-Copyright (c) 2005 Tilman Sauerbeck (tilman at code-monkey de)
-EOT
+                                       puts "Redact #{Redact::VERSION}"
                                        exit
                                end
 
@@ -140,7 +136,7 @@ EOT
                                                    "-i #{incl}/include " +
                                                    "-o #{tf_out.path} #{tf_in.path}"
                                                unless system(c)
-                                                       fail("Cannot compile Embryo code")
+                                                       raise("Cannot compile Embryo code")
                                                end
 
                                                ret[col.id] = tf_out.read