Skip to content

Commit

Permalink
Add cli version argument
Browse files Browse the repository at this point in the history
  • Loading branch information
drhelius committed Jun 30, 2019
1 parent 1a3db89 commit 11ea594
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions platforms/qt-shared/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ int main(int argc, char *argv[])
#ifdef Q_WS_X11
XInitThreads();
#endif

if((argc)==2 && (strcmp(argv[1], "-v") == 0))
{
printf("GEARSYSTEM %s by Ignacio Sanchez.\n\n", GEARSYSTEM_VERSION);
exit(0);
}

QApplication a(argc, argv);

if (argc > 2)
Expand Down

0 comments on commit 11ea594

Please sign in to comment.