@@ -1995,8 +1995,9 @@ def __init__(self, *args, **kwargs):
1995
1995
# build options from dict
1996
1996
options_dict = dict (* args , ** kwargs )
1997
1997
arglist = None if parse_argv else options_dict .get ('paths' , None )
1998
+ verbose = options_dict .get ('verbose' , False )
1998
1999
options , self .paths = process_options (
1999
- arglist , parse_argv , config_file , parser )
2000
+ arglist , parse_argv , config_file , parser , verbose )
2000
2001
if options_dict :
2001
2002
options .__dict__ .update (options_dict )
2002
2003
if 'paths' in options_dict :
@@ -2256,7 +2257,7 @@ def read_config(options, args, arglist, parser):
2256
2257
2257
2258
2258
2259
def process_options (arglist = None , parse_argv = False , config_file = None ,
2259
- parser = None ):
2260
+ parser = None , verbose = False ):
2260
2261
"""Process options passed either via arglist or via command line args.
2261
2262
2262
2263
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,
2280
2281
(options , args ) = parser .parse_args (arglist )
2281
2282
options .reporter = None
2282
2283
2284
+ if verbose : # If specified verbose, continue on verbosity
2285
+ options .verbose = verbose
2286
+
2283
2287
if options .ensure_value ('testsuite' , False ):
2284
2288
args .append (options .testsuite )
2285
2289
elif not options .ensure_value ('doctest' , False ):
0 commit comments