lib/thor/base.rb in thor-0.15.4 vs lib/thor/base.rb in thor-0.16.0
- old
+ new
@@ -506,9 +506,10 @@
item = [ option.usage(padding) ]
item.push(option.description ? "# #{option.description}" : "")
list << item
list << [ "", "# Default: #{option.default}" ] if option.show_default?
+ list << [ "", "# Possible values: #{option.enum.join(', ')}" ] if option.enum
end
end
shell.say(group_name ? "#{group_name} options:" : "Options:")
shell.print_table(list, :indent => 2)