ost::CommandOptionArg(3)

πŸ“¦ version 1.8.1, in ubuntu jammy

πŸ’– 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) β€” CommandOptionArg contructor.
  • 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 name
  • inOptionLetter β€” short letter name
  • inDescription β€” short description of the option
  • inRequired β€” true if option is required
  • ppNext β€” 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