sc::GetLongOpt(3)

πŸ“¦
version 2.3.1 Β· 3 versions
, in fedora 43, fedora 44, ubuntu noble

πŸ’– NAME πŸ’–

sc::GetLongOpt β€” bestie, that's literally the whole name, that's the star of this page ✨


🌈 SYNOPSIS 🌈

okay so here's the lineup, no cap πŸ‘‘

πŸŽ€ Public Types πŸŽ€

enum OptType { NoValue, OptionalValue, MandatoryValue }

the three flavours of OptType, sitting there looking cute: NoValue, OptionalValue, MandatoryValue πŸ’…

πŸ¦‹ Public Member Functions πŸ¦‹

GetLongOpt (const char optmark='-')
int parse (int argc, char *const *argv)
int parse (char *const str, char *const p)
int enroll (const char *const opt, const OptType t, const char *const desc, const char *const val)
const char * retrieve (const char *const opt) const
void usage (std::ostream &outfile=std::cout) const
void usage (const char *str)

okay so real quick, the deets that are right there in the signatures, because they matter:

  • GetLongOpt takes a const char optmark and it defaults to '-' β€” the default is baked in, she comes with it 🫢
  • parse shows up twice, fr fr β€” one version takes int argc plus char *const *argv, the other takes char *const str plus char *const p. Two whole overloads, main character energy πŸ’«
  • enroll takes const char *const opt, an OptType t, a const char *const desc and a const char *const val 🌸
  • retrieve takes const char *const opt and it's const, and it hands back a const char * πŸŽ€
  • usage is also doubled up β€” one takes a std::ostream &outfile that defaults to std::cout, the other takes a const char *str πŸ’œ
not me counting the overloads twice just to be sure. yes bestie, parse and usage each have two. that's not a typo, that's just the vibe πŸ”₯

πŸ‘‘ AUTHOR πŸ‘‘

Generated automatically by Doxygen for MPQC from the source code.

like, the page itself was auto-generated, so nobody's out here taking credit by hand πŸ’€


and that's the whole page, bestie!! go forth and vibe check your long options πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈπŸ’…πŸ«Ά

signing off from MPQC Version 2.3.1 β€” catch you on sc::GetLongOpt(3) πŸŒˆβ­πŸ‘‘

πŸ“¦ where this page comes from