Skip to content
Myr

make_parser: do not set options twice

Before adoption: this commit came in with the history the project adopted, so no landing records it.

OptionParser already sets `allow_interspersed_args` and `ignore_unknown_options` from the `ctx`.

authored by Daniel Hahler · committed by Daniel Hahler · parent 7eb990f · Browse files · 1 file+0 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+0 added−2 removed

  • other:+0 added−2 removed

1 file+0 added−2 removed

modified:click/core.py-2 removed
824 unmodified lines
825826 def make_parser(self, ctx):827 """Creates the underlying option parser for this command."""828 parser = OptionParser(ctx)829 parser.allow_interspersed_args = ctx.allow_interspersed_args830 parser.ignore_unknown_options = ctx.ignore_unknown_options829 for param in self.get_params(ctx):830 param.add_to_parser(parser, ctx)831 return parser832
929 unmodified lines