lib/cl/help/cmd.rb in cl-0.1.6 vs lib/cl/help/cmd.rb in cl-0.1.7
- old
+ new
@@ -52,9 +52,10 @@
end
def opts
@opts ||= begin
opts = cmd.opts.to_a
+ opts = opts.reject(&:internal?)
opts = opts - cmd.superclass.opts.to_a if common?
strs = Table.new(rjust(opts.map { |opt| [*opt.strs] }))
opts = opts.map { |opt| format_obj(opt) }
Table.new(strs.rows.zip(opts))
end