class Como::MainOpt
Specialized Opt
class for program (i.e. highest level subcommand).
Attributes
external[RW]
Program external arguments:
year[R]
Program author and year (date).
Public Class Methods
new( author, year, name, opt, type, doc, value = nil )
click to toggle source
Create program main option.
Calls superclass method
Como::Opt::new
# File lib/como.rb, line 2114 def initialize( author, year, name, opt, type, doc, value = nil ) @author = author @year = year @external = nil super( name, opt, type, doc, value = nil ) end
Public Instance Methods
fullCommand()
click to toggle source
Full command name.
# File lib/como.rb, line 2128 def fullCommand Opt.progname end
usageCommand()
click to toggle source
Usage printout for command.
# File lib/como.rb, line 2134 def usageCommand str = "\ #{fullCommand} #{cmdline.join(" ")} " str += suboptDoc if @config[ :copyright ] str += " Copyright (c) #{Opt.year} by #{Opt.author} " end str end