1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-15 22:54:57 +00:00

LibGUI: Define supported functions for using command line arguments

This commit is contained in:
Conrad Pankoff 2019-10-06 22:38:19 +11:00 committed by Andreas Kling
parent fabc717b39
commit c4da2a49a5
2 changed files with 9 additions and 0 deletions

View file

@ -23,6 +23,10 @@ GApplication::GApplication(int argc, char** argv)
s_the = this;
m_event_loop = make<CEventLoop>();
GWindowServerConnection::the();
if (argc > 0)
m_invoked_as = argv[0];
for (int i = 1; i < argc; i++)
m_args.append(argv[i]);
}
GApplication::~GApplication()