test/apps/todo/bin/todo in gli-2.10.0 vs test/apps/todo/bin/todo in gli-2.11.0
- old
+ new
@@ -33,10 +33,13 @@
version Todo::VERSION
commands_from 'todo/commands'
commands_from File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'todo_plugins', 'commands'))
+arg_name :argument, :optional
command :first do |c| c.action { |g,o,a| puts "first: #{a.join(',')}" } end
+
+arg :argument, :optional
command :second do |c| c.action { |g,o,a| puts "second: #{a.join(',')}" } end
command :chained => [ :first, :second ]
command [:chained2,:ch2] => [ :second, :first ]