From d35d3b37b9c7c81e6505ddff2b3155979382098e Mon Sep 17 00:00:00 2001 From: Bas Westerbaan Date: Thu, 17 Dec 2009 01:38:33 +0800 Subject: [PATCH] tweepyshell: bugfix: sys.argv -> args Signed-off-by: Bas Westerbaan --- tweepyshell | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tweepyshell b/tweepyshell index 6062a79..eefb85a 100755 --- a/tweepyshell +++ b/tweepyshell @@ -24,9 +24,9 @@ opt.add_option('-d', '--debug', options, args = opt.parse_args() if len(args) == 1: - auth = BasicAuthHandler(sys.argv[1], getpass()) + auth = BasicAuthHandler(args[0], getpass()) elif len(args) == 2: - auth = BasicAuthHandler(sys.argv[1], sys.argv[2]) + auth = BasicAuthHandler(args[0], args[1]) else: auth = None -- 2.25.1