Skip to content

Commit f2dbcb7

Browse files
committed
Merge pull request #259 from kynan/259-optional-argument-arglist-for-styleguide
StyleGuide accepts optional keyword argument arglist
2 parents 045cf2b + 022aa8a commit f2dbcb7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

pep8.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1574,11 +1574,12 @@ class StyleGuide(object):
15741574
def __init__(self, *args, **kwargs):
15751575
# build options from the command line
15761576
self.checker_class = kwargs.pop('checker_class', Checker)
1577+
arglist = kwargs.pop('arglist', None)
15771578
parse_argv = kwargs.pop('parse_argv', False)
15781579
config_file = kwargs.pop('config_file', None)
15791580
parser = kwargs.pop('parser', None)
15801581
options, self.paths = process_options(
1581-
parse_argv=parse_argv, config_file=config_file, parser=parser)
1582+
arglist, parse_argv, config_file, parser)
15821583
if args or kwargs:
15831584
# build options from dict
15841585
options_dict = dict(*args, **kwargs)

0 commit comments

Comments
 (0)