Package PyFoam :: Package Basics :: Module FoamOptionParser :: Class Subcommand
[hide private]
[frames] | no frames]

Class Subcommand

source code


A subcommand of a root command-line application that may be invoked by a SubcommandOptionParser. Taken from https://gist.github.com/sampsyo/462717

Instance Methods [hide private]
 
__init__(self, name, parser=None, help='', aliases=(), nr=None, exactNr=None)
Creates a new subcommand.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, name, parser=None, help='', aliases=(), nr=None, exactNr=None)
(Constructor)

source code 

Creates a new subcommand. name is the primary way to invoke the subcommand; aliases are alternate names. parser is an OptionParser responsible for parsing the subcommand's options. help is a short description of the command. If no parser is given, it defaults to a new, empty OptionParser.

Overrides: object.__init__