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
)

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

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