OpenTTD Source: src/misc/getoptdata.h File Reference

OpenTTD Source 15.0-beta1

Data Structures | Enumerations
getoptdata.h File Reference

Library for parsing command-line options. More...

Go to the source code of this file.

## Data Structures
struct | OptionData
| Data of an option. More...
struct | GetOptData
| Data storage for parsing command line options. More...

## Enumerations
enum | OptionDataType : uint8_t { ODF_NO_VALUE , ODF_HAS_VALUE , ODF_OPTIONAL_VALUE }
| Flags of an option. More...

## Detailed Description

Library for parsing command-line options.

Definition in file getoptdata.h.

## Enumeration Type Documentation

## ◆ OptionDataType

enum OptionDataType : uint8_t

Flags of an option.

Enumerator
ODF_NO_VALUE | A plain option (no value attached to it).
ODF_HAS_VALUE | An option with a value.
ODF_OPTIONAL_VALUE | An option with an optional value.

Definition at line 14 of file getoptdata.h.