Module Mixlib::CLI
In: lib/mixlib/cli.rb
lib/mixlib/cli/version.rb

Methods

Classes and Modules

Module Mixlib::CLI::ClassMethods

Constants

VERSION = "1.2.2"

Attributes

banner  [RW] 
config  [RW] 
opt_parser  [RW] 
options  [RW] 

Public Class methods

Create a new Mixlib::CLI class. If you override this, make sure you call super!

Parameters

*args<Array>:The array of arguments passed to the initializer

Returns

object<Mixlib::Config>:Returns an instance of whatever you wanted :)

Public Instance methods

Parses an array, by default ARGV, for command line options (as configured at the class level).

Parameters

argv<Array>:The array of arguments to parse; defaults to ARGV

Returns

argv<Array>:Returns any un-parsed elements.

[Validate]