UCommandlet::ParseCommandLine

Parses a string into tokens, separating switches (beginning with - or /) from other parameters

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Commandlets/Commandlet.h

Include

#include "Commandlets/Commandlet.h"

Syntax

static void ParseCommandLine
(
    const TCHAR * CmdLine,
    TArray< FString > & Tokens,
    TArray< FString > & Switches,
    TMap< FString, FString > & Params
)

Remarks

Parses a string into tokens, separating switches (beginning with - or /) from other parameters

Parameters

Parameter

Description

CmdLine

the string to parse

Tokens

[out] filled with all parameters found in the string

Switches

[out] filled with all switches found in the string

Params

[out] filled with all switches found in the string with the format key=value

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss