class documentation

class GbpOptionParserDebian(GbpOptionParser):

View In Hierarchy

Handles commandline options and parsing of config files for Debian tools

Class Variable defaults Undocumented
Method _warn_old_gbp_conf Undocumented

Inherited from GbpOptionParser:

Class Method get_config_files Get list of config files from the GBP_CONF_FILES environment variable.
Method __init__ No summary
Method add_boolean_config_file_option Undocumented
Method add_config_file_option 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_config_file_value Query a single interpolated config file value.
Method get_default get the default value
Method get_opt_names Undocumented
Method parse_config_files Parse the possible config files and set appropriate values default values
Method parse_lists Parse options that can be given as lists
Method print_help Print an extended help message, listing all options and any help text provided with them, to 'file' (default stdout).
Class Variable def_config_files config files we parse
Class Variable help help messages
Class Variable list_opts Undocumented
Class Variable short_opts Undocumented
Instance Variable command the gbp command we store the options for
Instance Variable config current configuration parameters
Instance Variable config_parser Undocumented
Instance Variable prefix prefix to prepend to all commandline options
Instance Variable sections Undocumented
Instance Variable valid_options Undocumented
Property config_file_sections List of all found config file sections
Class Method _name_to_filename Translate a name like 'system' to a config file name
Class Method _set_config_file_value Write a config value to a file creating it if needed
Static Method _listify No summary
Method _get_bool_default get default for boolean options this way we can handle no-foo=True and foo=False
Method _is_boolean is option_name a boolean option
Method _read_config_file Read config file
Method _warn_old_config_section Undocumented
Instance Variable _warned_old_gbp_conf Undocumented
defaults =

Undocumented

def _warn_old_gbp_conf(self, gbp_conf):