Navigation
API > API/Runtime > API/Runtime/Core
Description
Returns the name of the commandlet that was set on the command line by the arg '-Run=
This should be used by code that needs to know the commandlet name early on during engine startup, before the commandlet has been initialized. If possible, code should prefer calling GetRunningCommandletClass()->GetName() instead.
| Name | GetCommandletNameFromCmdline |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/CoreGlobals.h |
| Include Path | #include "CoreGlobals.h" |
| Source | /Engine/Source/Runtime/Core/Private/Misc/CoreGlobals.cpp |
FString GetCommandletNameFromCmdline()
The name of the commandlet that will end up running. If there is no commandlet then an empty string will be returned.