bugfix in cmdline for logging.