From f60318629fe78c0920386132ae11f2d15d47a691 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Metin?= Date: Tue, 4 Jul 2006 13:44:10 +0000 Subject: [PATCH] remove redundant getpass option and ask password if username is given. --- pisi/cli/commands.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pisi/cli/commands.py b/pisi/cli/commands.py index dcb08667..aa56f78d 100644 --- a/pisi/cli/commands.py +++ b/pisi/cli/commands.py @@ -89,8 +89,6 @@ class Command(object): default=False, help = _("assume yes in all yes/no queries")) p.add_option("-u", "--username", action="store") p.add_option("-p", "--password", action="store") - p.add_option("-P", action="store_true", dest="getpass", default=False, - help=_("get password from the command line")) p.add_option("-v", "--verbose", action="store_true", dest="verbose", default=False, help=_("detailed output")) @@ -133,7 +131,7 @@ class Command(object): self.options.authinfo = (username, password) return - if username and self.options.getpass: + if username and not password: from getpass import getpass password = getpass(_("Password: ")) self.options.authinfo = (username, password)