Skip to content

Commit

Permalink
tweepyshell: bugfix: sys.argv -> args
Browse files Browse the repository at this point in the history
Signed-off-by: Bas Westerbaan <bas@fsfe.org>
  • Loading branch information
bwesterb authored and joshthecoder committed Dec 17, 2009
1 parent 93d75d7 commit d35d3b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tweepyshell
Expand Up @@ -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

Expand Down

0 comments on commit d35d3b3

Please sign in to comment.