ost::CommandOptionArg(3)
π ost::CommandOptionArg π
okay bestie, welcome to the Library Functions Manual section of the GNU CommonC++ world β this is a little class that handles options that need a value to come with them. yes, the fancy ones. the main character options. β¨
πΈ NAME πΈ
ost::CommandOptionArg β Class for options with an argument e.g.
π SYNOPSIS π
#include <cmdoptns.h>
Inherits ost::CommandOptionWithArg.
π¦ Public Member Functions π¦
CommandOptionArg(const char *inOptionName, const char *inOptionLetter, const char *inDescription, bool inRequired=false, CommandOption **ppNext=&defaultCommandOptionList)βCommandOptionArgcontructor.virtual ~CommandOptionArg()
π Additional Inherited Members
π Detailed Description π
Class for options with an argument e.g.
--option value
β Examples
cmdlineopt.cpp.
bestie go look at cmdlineopt.cpp if you want to see this whole thing in the wild, it's giving tutorial energy fr fr π«Ά
π Constructor & Destructor Documentation π
β¨ ost::CommandOptionArg::CommandOptionArg β¨
ost::CommandOptionArg::CommandOptionArg (
const char * inOptionName,
const char * inOptionLetter,
const char * inDescription,
bool inRequired = false,
CommandOption ** ppNext = &defaultCommandOptionList
)
CommandOptionArg contructor. This sets the optionType for this object to HasArg.
Like, that's literally the whole point of this class β it tells the system "hey, this option comes with a value attached" and the optionType gets set to HasArg. periodt. π
π Parameters
inOptionNameβ long option nameinOptionLetterβ short letter nameinDescriptionβ short description of the optioninRequiredβ true if option is requiredppNextβ the linked list header
π§ ost::CommandOptionArg::~CommandOptionArg π§
virtual ost::CommandOptionArg::~CommandOptionArg () [virtual]
π Author π
Generated automatically by Doxygen for GNU CommonC++ from the source code.
and that's the whole vibe check, bestie β this page is from GNU CommonC++, dated Sun Dec 27 2020, so you know exactly where it came from. slay ππβ¨
π¦ where this page comes from
- ubuntu jammy: libcommoncpp2-doc 1.8.1-10
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms