Skip to content
Myr

Fix arg checks on Windoze. Fixes #477.

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

authored by Ionel Cristian Mărieș · committed by Armin Ronacher · parent f403b08 · Browse files · 1 file+1 added−1 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+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:click/_winconsole.py+1 added-1 removed
230 unmodified lines
231 arg = argv[0]232 if not arg.startswith('-') or arg == '-':233 break234 argv = argv[1:]235 if arg in ('-c', '-m'):235 if arg.startswith(('-c', '-m')):236 break237238 return argv[1:]239
25 unmodified lines