Elaztek Developer Hub
Blamite Game Engine - Strings  00386.06.16.23.0646.blamite
A library containing general purpose utilities and classes for use in multiple projects.
BlamCommandSwitch Struct Reference

Structure representing a command-line switch. More...

#include <switches.h>

Public Attributes

std::string name = "unknown"
 The name of the switch, excluding the - prefix. More...
 
std::string value = ""
 The value provided to the switch. Will be an empty string if no value was provided. More...
 

Detailed Description

Structure representing a command-line switch.

These are switches/flags passed to the engine via the command line. A switch can either be a switch on its own (ie, -console) or it can include arguments (ie, -vidmode w,h,r). Arguments must NOT contain any spaces. For multiple arguments, commas should be used. A switch MUST begin with a - or else it will be treated as an argument for the previous switch, or be ignored if the previous switch already had arguments passed to it.

Todo:
find a way to add spaces support (maybe through quotes or something idk)

Member Data Documentation

◆ name

std::string BlamCommandSwitch::name = "unknown"

The name of the switch, excluding the - prefix.

◆ value

std::string BlamCommandSwitch::value = ""

The value provided to the switch. Will be an empty string if no value was provided.


The documentation for this struct was generated from the following file: