pkgcheck.cli module

Various command-line specific support.

class pkgcheck.cli.ConfigFileParser(parser, configs=(), **kwargs)[source]

Bases: object

Argument parser that supports loading settings from specified config files.

config
default_configs = ('/etc/pkgcheck/pkgcheck.conf', '/home/runner/.config/pkgcheck/pkgcheck.conf')
parse_config(configs=())[source]

Parse given config files.

parse_config_options(namespace, configs=())[source]

Parse options from config if they exist.

parse_config_sections(namespace, sections)[source]

Parse options from a given iterable of config section names.

class pkgcheck.cli.ConfigParser(defaults=None, dict_type=<class 'dict'>, allow_no_value=False, *, delimiters=('=', ':'), comment_prefixes=('#', ';'), inline_comment_prefixes=None, strict=True, empty_lines_in_values=True, default_section='DEFAULT', interpolation=<object object>, converters=<object object>)[source]

Bases: ConfigParser

ConfigParser with case-sensitive keys (default forces lowercase).

optionxform(option)[source]
class pkgcheck.cli.Tool(parser, outfile=None, errfile=None)[source]

Bases: Tool

main()[source]

Execute the main script function.