1
0
mirror of https://github.com/Swordfish90/cool-retro-term.git synced 2025-01-31 10:11:20 +00:00

add --version, aka -v, command line option

This commit is contained in:
Barak A. Pearlmutter 2016-04-09 16:36:34 +01:00
parent 888ab49e44
commit 151fb6e58d

View File

@ -61,6 +61,11 @@ int main(int argc, char *argv[])
return 0;
}
if (args.contains("-v") || args.contains("--version")) {
qDebug() << "cool-retro-term 0.9";
return 0;
}
// Manage default command
QStringList cmdList;
if (args.contains("-e")) {