examples/speak in clamp-0.5.1 vs examples/speak in clamp-0.6.0
- old
+ new
@@ -2,13 +2,13 @@
# A simple Clamp command, with options and parameters
require "clamp"
-class SpeakCommand < Clamp::Command
+Clamp do
- self.description = %{
+ banner %{
Say something.
}
option "--loud", :flag, "say it loud"
option ["-n", "--iterations"], "N", "say it N times", :default => 1 do |s|
@@ -27,7 +27,5 @@
end
end
end
-
-SpeakCommand.run