Skip to content

Commit

Permalink
Merge pull request #962 from blueyed/make_parser
Browse files Browse the repository at this point in the history
make_parser: do not set options twice
  • Loading branch information
LokiHokie authored May 14, 2018
2 parents 0bfac43 + 5173285 commit 19d5273
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions click/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -826,8 +826,6 @@ def show_help(ctx, param, value):
def make_parser(self, ctx):
"""Creates the underlying option parser for this command."""
parser = OptionParser(ctx)
parser.allow_interspersed_args = ctx.allow_interspersed_args
parser.ignore_unknown_options = ctx.ignore_unknown_options
for param in self.get_params(ctx):
param.add_to_parser(parser, ctx)
return parser
Expand Down

0 comments on commit 19d5273

Please sign in to comment.