diff --git a/app/main.cpp b/app/main.cpp index 0cb4bb6..445989b 100644 --- a/app/main.cpp +++ b/app/main.cpp @@ -24,11 +24,12 @@ int main(int argc, char *argv[]) // Manage command line arguments from the cpp side QStringList args = app.arguments(); if (args.contains("-h") || args.contains("--help")) { - qDebug() << "Usage: " + args.at(0) + " [--default-settings] [--workdir ] [--program ] [-h|--help]"; - qDebug() << " --default-settings Run cool-old-term with the default settings"; + qDebug() << "Usage: " + args.at(0) + " [--default-settings] [--workdir ] [--program ] [-p|--profile ] [--fullscreen] [-h|--help]"; + qDebug() << " --default-settings Run cool-retro-term with the default settings"; qDebug() << " --workdir Change working directory to 'dir'"; qDebug() << " --program Run the 'prog' in the new terminal."; - qDebug() << " -p|--profile Run cool-old-term with the given profile."; + qDebug() << " --fullscreen Run cool-retro-term in fullscreen."; + qDebug() << " -p|--profile Run cool-retro-term with the given profile."; qDebug() << " -h|--help Print this help."; return 0; } diff --git a/app/qml/ApplicationSettings.qml b/app/qml/ApplicationSettings.qml index e9fd1b8..9ab6aae 100644 --- a/app/qml/ApplicationSettings.qml +++ b/app/qml/ApplicationSettings.qml @@ -404,6 +404,11 @@ Item{ else console.log("Warning: selected profile is not valid; ignoring it"); } + + if (args.indexOf("--fullscreen") !== -1) { + fullscreen = true; + showMenubar = false; + } } Component.onDestruction: { storeSettings();