UKismetSystemLibrary::ParseCommandLine

Parses the given string into loose tokens, switches (arguments that begin with - or /) and parameters (-mySwitch=myVar)

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Kismet/KismetSystemLibrary.h

Include

#include "Kismet/KismetSystemLibrary.h"

Source

/Engine/Source/Runtime/Engine/Private/KismetSystemLibrary.cpp

Syntax

static void ParseCommandLine
(
    const FString & InCmdLine,
    TArray < FString > & OutTokens,
    TArray < FString > & OutSwitches,
    TMap < FString , FString > & OutParams
)

Remarks

Parses the given string into loose tokens, switches (arguments that begin with - or /) and parameters (-mySwitch=myVar)

Parameters

Parameter

Description

InCmdLine

The the string to parse (ie '-foo -bar=/game/baz testtoken' )

OutTokens[out]

Filled with all loose tokens found in the string (ie: testToken in above example)

OutSwitches[out]

Filled with all switches found in the string (ie -foo)

OutParams[out]

Filled with all switches found in the string with the format key = value (ie: -bar, /game/baz)

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