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

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback