sc::GetLongOpt(3)
π 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:
GetLongOpttakes aconst char optmarkand it defaults to'-'β the default is baked in, she comes with it π«Άparseshows up twice, fr fr β one version takesint argcpluschar *const *argv, the other takeschar *const strpluschar *const p. Two whole overloads, main character energy π«enrolltakesconst char *const opt, anOptType t, aconst char *const descand aconst char *const valπΈretrievetakesconst char *const optand it'sconst, and it hands back aconst char *πusageis also doubled up β one takes astd::ostream &outfilethat defaults tostd::cout, the other takes aconst char *strπ
not me counting the overloads twice just to be sure. yes bestie,parseandusageeach 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
- fedora 43: mpqc-devel 2.3.1-65.fc43 Β· GPL-2.0-or-later AND LicenseRef-Callaway-LGPLv2+
- fedora 43: mpqc-devel 2.3.1-65.fc43 Β· GPL-2.0-or-later AND LicenseRef-Callaway-LGPLv2+
- fedora 44: mpqc-devel 2.3.1-67.fc44 Β· GPL-2.0-or-later AND LicenseRef-Callaway-LGPLv2+
- fedora 44: mpqc-devel 2.3.1-67.fc44 Β· GPL-2.0-or-later AND LicenseRef-Callaway-LGPLv2+
- ubuntu noble: libsc-doc 2.3.1-22build2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms