Skip to content

Commit

Permalink
Merge pull request #4061 from benjaoming/option-failure-fix
Browse files Browse the repository at this point in the history
Also fail on broken -x 123, should be -x123 for now
  • Loading branch information
MCGallaspy committed Jul 10, 2015
2 parents 3ca0f27 + c306a03 commit 5409cc5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kalitectl.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@

# We do not understand --option value, only --option=value.
# Match all patterns of "--option value" and fail if they exist
__validate_cmd_options = re.compile(r"--[^\s]+\s+(?:(?!--|-[\w]))")
__validate_cmd_options = re.compile(r"--?[^\s]+\s+(?:(?!--|-[\w]))")
if __validate_cmd_options.search(" ".join(sys.argv[1:])):
sys.stderr.write("Please only use --option=value patterns. The option parser gets confused if you do otherwise.\n")
sys.stderr.write("Please only use --option=value or -x123 patterns. No spaces allowed between option and value. The option parser gets confused if you do otherwise.\n\nWill be fixed for next version 0.15")
sys.exit(1)

from threading import Thread
Expand Down

0 comments on commit 5409cc5

Please sign in to comment.