Class SCParse::ScriptCommandParser
In: lib/scparse.rb
Parent: Object

Super-duper uber-parent class for all commands.



main  [R] 
name  [R] 

Public Class methods

Creates a new command object with the name ‘main’ and sets itself as the parent of the command.

Public Instance methods

Adds a subcommand to the main command object.

Does this application have a command with the given name? Note: returns command or nil, not true/false.

Returns any options in the main command object.

Sets the options for the main command object.

Runs the main command object using the given arguments (which by default is ARGV).

Sets the prerequisites block for the main command object.