Method: Optplus::Parser.usage

Defined in:
lib/optplus.rb

.usage(txt) ⇒ Object

define the usage banner, less “Usage: <prog_name>”!

For example: usage “[options] [actions] [filename]” becomes: “Usage: progname [options] [actions] [filename]”

Parameters:

  • txt (String)

    that is the banner



34
35
36
# File 'lib/optplus.rb', line 34

def usage(txt)
  @_banner = txt
end