require 'clio'

      cli = Clio::Commandline.new

      cli.usage.document('--output=PATH -o', '*FILES')
      cli.usage.verbose?('-v')

      cli.usage.help(
        'document'  , 'generate docs',
        '--verbose' , 'do it loudly'
      )

      cli.parse('document -v -o doc/ README [A-Z]*')

      cli.command   #=> "document"
      cli.verbose?  #=> true

      cli.document.options    #=> [:output => "doc/"]
      cli.document.arguments  #=> ["README", "[A-Z]*"]

      cli.parse('--help')

      if cli.help?
        puts Clio::String.new(cli.help){ |s|
          s.gsub!(/^\w+\:/){ |w| w.bold.underline }
          s.gsub!(/[-]{1,2}\w+/){ |w| w.blue }
        }
      end
    

Figure 1. Clio -- Clio is an advanced library for developing command line intefaces in the Ruby programming lanaguage. Clio includes an a commandline parser, a quick drop-in commandline mixin parser and a console String class that makes it suprisingly easy to output beautiful console text.