class documentation
class GbpOptionParserDebian(GbpOptionParser):
Handles commandline options and parsing of config files for Debian tools
Class Variable | defaults |
Undocumented |
Method | _warn |
Undocumented |
Inherited from GbpOptionParser
:
Class Method | get |
Get list of config files from the GBP_CONF_FILES environment variable. |
Method | __init__ |
No summary |
Method | add |
Undocumented |
Method | add |
set a option for the command line parser, the default is read from the config file param option_name: name of the option type option_name: string param dest: where to store this option type dest: string param help: help text type help: string... |
Method | get |
Query a single interpolated config file value. |
Method | get |
get the default value |
Method | get |
Undocumented |
Method | parse |
Parse the possible config files and set appropriate values default values |
Method | parse |
Parse options that can be given as lists |
Method | print |
Print an extended help message, listing all options and any help text provided with them, to 'file' (default stdout). |
Class Variable | def |
config files we parse |
Class Variable | help |
help messages |
Class Variable | list |
Undocumented |
Class Variable | short |
Undocumented |
Instance Variable | command |
the gbp command we store the options for |
Instance Variable | config |
current configuration parameters |
Instance Variable | config |
Undocumented |
Instance Variable | prefix |
prefix to prepend to all commandline options |
Instance Variable | sections |
Undocumented |
Instance Variable | valid |
Undocumented |
Property | config |
List of all found config file sections |
Class Method | _name |
Translate a name like 'system' to a config file name |
Class Method | _set |
Write a config value to a file creating it if needed |
Static Method | _listify |
No summary |
Method | _get |
get default for boolean options this way we can handle no-foo=True and foo=False |
Method | _is |
is option_name a boolean option |
Method | _read |
Read config file |
Method | _warn |
Undocumented |
Instance Variable | _warned |
Undocumented |