mirror of
https://github.com/Swordfish90/cool-retro-term.git
synced 2025-02-23 05:18:44 +00:00
Add --fullscreen command line parameter. Fix some mistakes in --help.
This commit is contained in:
parent
1cbedb41d9
commit
29ec02b65e
@ -24,11 +24,12 @@ int main(int argc, char *argv[])
|
|||||||
// Manage command line arguments from the cpp side
|
// Manage command line arguments from the cpp side
|
||||||
QStringList args = app.arguments();
|
QStringList args = app.arguments();
|
||||||
if (args.contains("-h") || args.contains("--help")) {
|
if (args.contains("-h") || args.contains("--help")) {
|
||||||
qDebug() << "Usage: " + args.at(0) + " [--default-settings] [--workdir <dir>] [--program <prog>] [-h|--help]";
|
qDebug() << "Usage: " + args.at(0) + " [--default-settings] [--workdir <dir>] [--program <prog>] [-p|--profile <prof>] [--fullscreen] [-h|--help]";
|
||||||
qDebug() << " --default-settings Run cool-old-term with the default settings";
|
qDebug() << " --default-settings Run cool-retro-term with the default settings";
|
||||||
qDebug() << " --workdir <dir> Change working directory to 'dir'";
|
qDebug() << " --workdir <dir> Change working directory to 'dir'";
|
||||||
qDebug() << " --program <prog> Run the 'prog' in the new terminal.";
|
qDebug() << " --program <prog> 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 <prof> Run cool-retro-term with the given profile.";
|
||||||
qDebug() << " -h|--help Print this help.";
|
qDebug() << " -h|--help Print this help.";
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -404,6 +404,11 @@ Item{
|
|||||||
else
|
else
|
||||||
console.log("Warning: selected profile is not valid; ignoring it");
|
console.log("Warning: selected profile is not valid; ignoring it");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (args.indexOf("--fullscreen") !== -1) {
|
||||||
|
fullscreen = true;
|
||||||
|
showMenubar = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Component.onDestruction: {
|
Component.onDestruction: {
|
||||||
storeSettings();
|
storeSettings();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user