Navigation
Unreal Engine C++ API Reference > Runtime > Core > Misc
References
Module | Core |
Header | /Engine/Source/Runtime/Core/Public/Misc/CommandLine.h |
Include | #include "Misc/CommandLine.h" |
Syntax
struct FCommandLine
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | AddToSubprocessCommandline
(
const TCHAR* Param |
Adds a new parameter to subprocess command line. |
![]() ![]() |
void | Append
(
const TCHAR* AppendString |
Appends the passed string to the command line as it is (no space is added). |
![]() ![]() |
FString | BuildFromArgV
(
const WIDECHAR* Prefix, |
Builds a command line string from the ArgC/ArgV main() arguments, together with an optional prefix or suffix, for adding additional command list arguments programmatically. |
![]() ![]() |
FString | BuildFromArgV
(
const ANSICHAR* Prefix, |
Builds a command line string from the ArgC/ArgV main() arguments, together with an optional prefix or suffix, for adding additional command list arguments programmatically. |
![]() ![]() |
bool | FilterCLIUsingGrammarBasedParser
(
TCHAR* OutLine, |
FilterCLIUsingGrammarBasedParser parses CLI style arguments. |
![]() ![]() |
const TCHAR * | Get () |
Returns an edited version of the executable's command line with the game name and certain other parameters removed. |
![]() ![]() |
const TCHAR * | Returns an edited version of the executable's command line. | |
![]() ![]() |
const TCHAR * | GetOriginal () |
Returns the command line originally passed to the executable. |
![]() ![]() |
const TCHAR * | Returns an edited version of the command line originally passed to the executable. | |
![]() ![]() |
const FString & | Returns the subprocess command line string | |
![]() ![]() |
bool | Checks if command line logging filtering is enabledReturns true if logging filter is enabled | |
![]() ![]() |
bool | Checks if the command line has been initialized. | |
![]() ![]() |
void | Parses a string into tokens, separating switches (beginning with -) from other parameters | |
![]() ![]() |
const TCHAR * | RemoveExeName
(
const TCHAR* CmdLine |
Removes the executable name from the passed CmdLine, denoted by parentheses. |
![]() ![]() |
void | Reset () |
Resets FCommandLine to an uninitialised state as if Set() has never been called |
![]() ![]() |
bool | Set
(
const TCHAR* NewCommandLine |
Sets CmdLine to the string given |
Constants
Name | Description |
---|---|
bIsInitialized | Flag to check if the commandline has been initialized or not. |
CmdLine | Character buffer containing the command line |
LoggingCmdLine | Character buffer containing the command line filtered for logging purposes |
LoggingOriginalCmdLine | Character buffer containing the original command line filtered for logging purposes |
MaxCommandLineSize | Maximum size of the command line |
OriginalCmdLine | Character buffer containing the original command line |