lib/relish/commands/dsl/help_text.rb in relish-0.0.9 vs lib/relish/commands/dsl/help_text.rb in relish-0.1.0
- old
+ new
@@ -32,9 +32,15 @@
end
def clear_commands
@commands = {}
end
+
+ def max_usage_length
+ commands.values.map {|v|
+ v.map {|v| v.keys.to_s.length }.max
+ }.max
+ end
end
end
end
end
\ No newline at end of file