MRTKLIB 0.7.14
Modernized GNSS Positioning Library
Loading...
Searching...
No Matches
mrtk_optmap_t Struct Reference

Long-option to short-option alias entry. More...

#include <mrtk_cli.h>

Public Attributes

const char * long_opt
const char * short_opt

Detailed Description

Long-option to short-option alias entry.

Each subcommand defines a NULL-terminated array of these to declare which --long flags translate to which -short flag in its existing parser. Used by mrtk_normalize_args() as a pre-pass over argv.

Definition at line 26 of file mrtk_cli.h.

Member Data Documentation

◆ long_opt

const char* mrtk_optmap_t::long_opt

long-form flag, e.g. "--config"

Definition at line 27 of file mrtk_cli.h.

Referenced by mrtk_normalize_args().

◆ short_opt

const char* mrtk_optmap_t::short_opt

short-form flag the parser already handles, e.g. "-k"

Definition at line 28 of file mrtk_cli.h.


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