Zycore 1.5.2
Zyan Core Library for C
Loading...
Searching...
No Matches
ZyanArgParseArg_ Struct Reference

Information about a parsed argument. More...

#include <ArgParse.h>

Collaboration diagram for ZyanArgParseArg_:
[legend]

Data Fields

const ZyanArgParseDefinitiondef
 Corresponding argument definition, or ZYAN_NULL for unnamed args.
ZyanBool has_value
 Whether the argument has a value (is non-boolean).
ZyanStringView value
 If has_value == true, then the argument value.

Detailed Description

Information about a parsed argument.

Field Documentation

◆ def

Corresponding argument definition, or ZYAN_NULL for unnamed args.

This pointer is borrowed from the cfg pointer passed to ZyanArgParse.

◆ has_value

ZyanBool has_value

Whether the argument has a value (is non-boolean).

◆ value

If has_value == true, then the argument value.

This is a view into the argv string array passed to ZyanArgParse via the cfg argument.


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