public void exec(String[] args) throws Exception {
String portname = DEFAULT_PORTNAME;
Log.logLevel = Log.LOG_INFO;
Log.info("tc65sh v" + VERSION_STRING);
UserInterface ui = null;
for (int i = 0; i < args.length; i++) {
if (args[i].equals("-p") || args[i].equals("--portname")) {
portname = args[i + 1];
} else if (args[i].equals("-b") || args[i].equals("--baudrate")) {
baudrate = Integer.parseInt(args[i + 1]);