From 74f75616c15c225e1bf717f96c93bc67af5e5422 Mon Sep 17 00:00:00 2001 From: Ben Darnell Date: Wed, 3 Feb 2010 12:06:43 -0800 Subject: [PATCH] Stop parsing arguments after -- --- tornado/options.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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('-', '_')