| Home | Trees | Index | Help | 
|---|
| Package svnmailer :: Module cli :: Class OptionParser | 
 | 
OptionContainer--+ |OptionParser--+ | OptionParser
| Method Summary | |
|---|---|
| Initialization | |
| str | Returns the program name | 
| We raise an exception instead of calling sys.exit | |
| str | Returns the formatted help string | 
| str | Returns the program name | 
| str | Returns the usage string | 
| str | Returns the version string | 
| optparse.OptionContainer | Parses the argument list | 
| Inherited from OptionParser | |
|  | |
| check_values(values : Values, args : [string]) -> (values : Values, args : [string]) Check that the supplied option values and leftover arguments are valid. | |
|  | |
|  | |
|  | |
|  | |
|  | |
| parse_args(args : [string] = sys.argv[1:], values : Values = None) -> (values : Values, args : [string]) Parse the command-line options found in 'args' (default: sys.argv[1:]). | |
| print_help(file : file = stdout) Print an extended help message, listing all options and any help text provided with them, to 'file' (default stdout). | |
| print_usage(file : file = stdout) Print the usage message for the current program (self.usage) to 'file' (default stdout). | |
| print_version(file : file = stdout) Print the version message for this program (self.version) to 'file' (default stdout). | |
|  | |
|  | |
|  | |
| Inherited from OptionContainer | |
| add_option(Option)... | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
|  | |
| Class Variable Summary | |
|---|---|
| Inherited from OptionParser | |
| list | standard_option_list=[]                                 | 
| Method Details | 
|---|
| __init__(self,
          background=True)
     | 
| _get_prog_name(self)Returns the program name
 | 
| error(self, msg)We raise an exception instead of calling sys.exit
 | 
| format_help(self, formatter=None)Returns the formatted help string The string consists of the normal option help generated by the optparse module and a short description of the old style options. All text is tried to be wrapped to fit into the current terminal width. 
 | 
| get_prog_name(self)Returns the program name
 | 
| get_usage(self)Returns the usage string
 | 
| get_version(self)Returns the version string The string consists of two lines. The first line contains the svnmailer version (like svnmailer-1.2.3) and the second line contains the svn version propagated by the bindings (like with svn 4.5.6 (revision 7)) 
 | 
| parseArgs(self, *args, **kwargs)Parses the argument list
 | 
| Home | Trees | Index | Help | 
|---|
| Generated by Epydoc 2.0 on Sun Sep 25 20:49:14 2005 | http://epydoc.sf.net |