Class: OptionParser

Inherits:
Object
  • Object
show all
Includes:
Subcommand
Defined in:
lib/cl/magic/common/sub_command.rb

Defined Under Namespace

Modules: Subcommand

Instance Method Summary collapse

Methods included from Subcommand

#subcommand

Instance Method Details

#parse!(*args) ⇒ Object



43
44
45
46
# File 'lib/cl/magic/common/sub_command.rb', line 43

def parse!(*args)
  parse_with_subcommand!(*args)
  self
end

#summarize(to = [], width = @summary_width, max = width - 1, indent = @summary_indent, &blk) ⇒ Object



48
49
50
# File 'lib/cl/magic/common/sub_command.rb', line 48

def summarize(to = [], width = @summary_width, max = width - 1, indent = @summary_indent, &blk)
  summarize_with_subcommand(to, width, max, indent, &blk)
end