def prompt_for_password(args):
 if (not args.password):
  args.password = getpass.getpass(prompt=('Enter password for host %s and user %s: ' % (args.host, args.user)))
 return args

def prompt_for_password ( args ) : if ( not args . password ) : args . password = getpass . getpass ( prompt = ( 'Enter password for host %s and user %s: ' % ( args . host , args . user ) ) ) return args
if no password is specified on the command line .