Skip to content

Commit c556daa

Browse files
committed
- Forward down verbosity level
1 parent 769ea41 commit c556daa

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

pycodestyle.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1995,8 +1995,9 @@ def __init__(self, *args, **kwargs):
19951995
# build options from dict
19961996
options_dict = dict(*args, **kwargs)
19971997
arglist = None if parse_argv else options_dict.get('paths', None)
1998+
verbose = options_dict.get('verbose', False)
19981999
options, self.paths = process_options(
1999-
arglist, parse_argv, config_file, parser)
2000+
arglist, parse_argv, config_file, parser, verbose)
20002001
if options_dict:
20012002
options.__dict__.update(options_dict)
20022003
if 'paths' in options_dict:
@@ -2256,7 +2257,7 @@ def read_config(options, args, arglist, parser):
22562257

22572258

22582259
def process_options(arglist=None, parse_argv=False, config_file=None,
2259-
parser=None):
2260+
parser=None, verbose=False):
22602261
"""Process options passed either via arglist or via command line args.
22612262
22622263
Passing in the ``config_file`` parameter allows other tools, such as flake8
@@ -2280,6 +2281,9 @@ def process_options(arglist=None, parse_argv=False, config_file=None,
22802281
(options, args) = parser.parse_args(arglist)
22812282
options.reporter = None
22822283

2284+
if verbose: # If specified verbose, continue on verbosity
2285+
options.verbose = verbose
2286+
22832287
if options.ensure_value('testsuite', False):
22842288
args.append(options.testsuite)
22852289
elif not options.ensure_value('doctest', False):

0 commit comments

Comments
 (0)