From: Bas Westerbaan Date: Wed, 16 Dec 2009 17:38:33 +0000 (+0800) Subject: tweepyshell: bugfix: sys.argv -> args X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=d35d3b37b9c7c81e6505ddff2b3155979382098e;p=tweepy.git tweepyshell: bugfix: sys.argv -> args Signed-off-by: Bas Westerbaan --- 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