password = new String(sysConsole.readPassword("Password: "));
} else {
exitWithError("Cannot read password non-interactively");
}
}
connection.connect(context, password);
context.setConnection(connection);
break;
case 'f':
inputFile = g.getOptarg();
if ("-".equals(inputFile) || new File(inputFile).isFile()) {