mirror of
https://github.com/Swordfish90/cool-retro-term.git
synced 2025-02-21 20:39:00 +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
|
||||
QStringList args = app.arguments();
|
||||
if (args.contains("-h") || args.contains("--help")) {
|
||||
qDebug() << "Usage: " + args.at(0) + " [--default-settings] [--workdir <dir>] [--program <prog>] [-h|--help]";
|
||||
qDebug() << " --default-settings Run cool-old-term with the default settings";
|
||||
qDebug() << "Usage: " + args.at(0) + " [--default-settings] [--workdir <dir>] [--program <prog>] [-p|--profile <prof>] [--fullscreen] [-h|--help]";
|
||||
qDebug() << " --default-settings Run cool-retro-term with the default settings";
|
||||
qDebug() << " --workdir <dir> Change working directory to 'dir'";
|
||||
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.";
|
||||
return 0;
|
||||
}
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user