diff options
author | Florent Xicluna <florent.xicluna@gmail.com> | 2014-03-23 14:41:02 +0100 |
---|---|---|
committer | Florent Xicluna <florent.xicluna@gmail.com> | 2014-03-23 14:41:02 +0100 |
commit | f2dbcb70063ef54f9425c69c451597daee0b89c5 (patch) | |
tree | 46c65d24c5ba4e69498c0a3c8122dab391876196 | |
parent | 045cf2b48a7e03f652b81a3f949878865731f3e0 (diff) | |
parent | 022aa8a89e023731b5b71dca8779e0d14ddeb13a (diff) | |
download | pep8-f2dbcb70063ef54f9425c69c451597daee0b89c5.tar.gz |
Merge pull request #259 from kynan/259-optional-argument-arglist-for-styleguide
StyleGuide accepts optional keyword argument arglist
-rwxr-xr-x | pep8.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1574,11 +1574,12 @@ class StyleGuide(object): def __init__(self, *args, **kwargs): # build options from the command line self.checker_class = kwargs.pop('checker_class', Checker) + arglist = kwargs.pop('arglist', None) parse_argv = kwargs.pop('parse_argv', False) config_file = kwargs.pop('config_file', None) parser = kwargs.pop('parser', None) options, self.paths = process_options( - parse_argv=parse_argv, config_file=config_file, parser=parser) + arglist, parse_argv, config_file, parser) if args or kwargs: # build options from dict options_dict = dict(*args, **kwargs) |