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

Methods

banner   option   options   options=  

Public Instance methods

Change the banner. Defaults to:

  Usage: #{0} (options)

Parameters

bstring<String>:The string to set the banner to

Returns

@banner<String>:The current banner

Add a command line option.

Parameters

name<Symbol>:The name of the option to add
args<Hash>:A hash of arguments for the option, specifying how it should be parsed.

Returns

true:Always returns true.

Get the hash of current options.

Returns

@options<Hash>:The current options hash.

Set the current options hash

Parameters

val<Hash>:The hash to set the options to

Returns

@options<Hash>:The current options hash.

[Validate]