String userAgent = Model.getSingleton().getOptionsParam().getHttpHeaderParam().getCustomUserAgent();
HttpSender.setUserAgent(userAgent);
boolean showSplash = Model.getSingleton().getOptionsParam().getViewParam().isShowSplash();
AboutWindow aboutWindow = null;
if (cmdLine.isGUI()) {
showLicense();
if (showSplash) {
aboutWindow = new AboutWindow();
aboutWindow.setVisible(true);
Thread.sleep(1000);
}
}
Model.getSingleton().getOptionsParam().setGUI(cmdLine.isGUI());
if (Model.getSingleton().getOptionsParam().isGUI()) {
runGUI();
if (showSplash) {
aboutWindow.dispose();
}
} else {
runCommandLine();
}