tweepyshell: bugfix: sys.argv -> args
authorBas Westerbaan <bas@fsfe.org>
Wed, 16 Dec 2009 17:38:33 +0000 (01:38 +0800)
committerJoshua Roesslein <jroesslein@gmail.com>
Thu, 17 Dec 2009 05:47:03 +0000 (13:47 +0800)
Signed-off-by: Bas Westerbaan <bas@fsfe.org>
tweepyshell

index 6062a79c717a3bfaa08259da124fc23f7c4cb78d..eefb85aa2c910e721c35fce942ea23d9aa2cc0b9 100755 (executable)
@@ -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