diff --git a/tornado/options.py b/tornado/options.py index c7046a32..29286cbe 100644 --- a/tornado/options.py +++ b/tornado/options.py @@ -107,7 +107,8 @@ def parse_command_line(args=None): remaining = args[i:] break if args[i] == "--": - continue + remaining = args[i+1:] + break arg = args[i].lstrip("-") name, equals, value = arg.partition("=") name = name.replace('-', '_')