do not ask for 'username' if it is already given
@@ -39,6 +39,8 @@ class UserIO(object):
def request_login(self, remote_name, username=None):
"""Request user to input their name and password
:param username If username is specified it only request password"""
+
+ if not username:
if self._interactive:
self.out.write("Remote '%s' username: " % remote_name)
username = self.get_username(remote_name)
