Skip to content
Myr

Correct fix for #20

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

authored by Armin Ronacher · committed by Armin Ronacher · parent a4b7d70 · Browse files · 1 file+3 added−3 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+3 added−3 removed

  • other:+3 added−3 removed

1 file+3 added−3 removed

modified:click.py+3 added-3 removed
1309 unmodified lines
1310 except IndexError:1311 found = False1312 elif self.nargs < 0:1313 value = tuple(args)1314 found = not value1314 found = value1315 args = []1316 else:1317 values = args[:self.nargs]1318 values += [None] * (self.nargs - len(values))1319 args = args[self.nargs:]1320 value = tuple(values)1321 found = not value1321 found = value1322 if not found:1323 value = self.value_from_envvar(ctx)1324 if self.nargs != 1:1325 value = (value,)1325 value = value and (value,) or ()1326 return value, args132713281329def _make_command(f, name, attrs, cls):
301 unmodified lines