• Doug Anderson's avatar
    patman: Add support for settings in .patman · 8568baed
    Doug Anderson authored
    This patch adds support for a [settings] section in the .patman file.
    In this section you can add settings that will affect the default
    values for command-line options.
    
    Support is added in a generic way such that any setting can be updated
    by just referring to the "dest" of the option that is passed to the
    option parser.  At the moment options that would make sense to put in
    settings are "ignore_errors", "process_tags", and "verbose".  You
    could override them like:
    
     [settings]
     ignore_errors: True
     process_tags: False
     verbose: True
    
    The settings functionality is also used in a future change which adds
    support for per-project settings.
    Signed-off-by: default avatarDoug Anderson <dianders@chromium.org>
    8568baed
settings.py 4.22 KB