ZyanArgParseArg_(3)

πŸ“¦
version 1.5.2 Β· 2 versions
, in ubuntu resolute, ubuntu stonking

πŸ’– ZyanArgParseArg_(3) πŸ’–

okay bestie, welcome to your new fave page in the Library Functions Manual 🌸 this one's all about ZyanArgParseArg_ and honestly? it's giving "tiny struct, big responsibilities" ✨


✨ NAME ✨

ZyanArgParseArg_ β€” literally just that, the name, no notes, slay πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

#include <ArgParse.h>

Public Attributes

  • const ZyanArgParseDefinition * def
  • ZyanBool has_value
  • ZyanStringView value

πŸ¦‹ Detailed Description πŸ¦‹

Information about a parsed argument. that's it, that's the whole vibe β€” it's the little info packet you get handed when an argument gets parsed 🫢


🌸 Member Data Documentation 🌸

const ZyanArgParseDefinition* ZyanArgParseArg_::def

Corresponding argument definition, or ZYAN_NULL for unnamed args. so if it's unnamed, it's ZYAN_NULL, no cap 😌

This pointer is borrowed from the cfg pointer passed to ZyanArgParse. borrowed bestie, do NOT go freeing it, it is not yours, it's a vibe loan only πŸ™ˆ

ZyanBool ZyanArgParseArg_::has_value

Whether the argument has a value (is non-boolean). tl;dr: does it carry a lil payload or is it just a yes/no situation πŸ’€

ZyanStringView ZyanArgParseArg_::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. so it's looking at that memory, not holding its own copy β€” iconic but also pls be careful πŸŽ€βœ¨


πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for Zycore from the source code. not a human, just a robot doing its thing, respect πŸ€–πŸ’œ


lowkey reminder: def is borrowed from cfg, and value is a view into argv via cfg β€” nobody here owns their own memory, so don't @ them with a free πŸ“

and that's the whole page bestie, you ate πŸ’…βœ¨ this was Zycore, Version 1.5.2.0, and we're signing off on ZyanArgParseArg_(3) β€” periodt πŸ§šπŸ’–πŸŒˆ

πŸ“¦ where this page comes from