cmdoptns.h(3)

πŸ“¦ version 1.8.1, in ubuntu jammy

🌸 NAME 🌸

cmdoptns.h β€” Command line option parsing interface.

okay so bestie, this is the cmdoptns.h(3) page from the Library Functions Manual. It's giving "I parse your command line options and I do it fabulously." πŸ’…


✨ SYNOPSIS ✨

#include <cc++/string.h>

🌈 Classes 🌈

  • ost::CommandOption β€” the base class for all command line options. The parent, the blueprint, the main character.
  • ost::CommandOptionWithArg β€” derived class of CommandOption, for options that have a value associated with them. A little extra something attached. πŸ’–
  • ost::CommandOptionArg β€” class for options with an argument, e.g. ... and yes, the original description literally stops at "e.g." β€” it's a cliffhanger, no cap. 🫠
  • ost::CommandOptionRest β€” it only makes sense to have a single one of these set, and it is exclusive with CommandOptionCollect. One at a time, bestie, we don't share.
  • ost::CommandOptionCollect β€” it only makes sense to have a single one of these set, and it is also exclusive with CommandOptionRest. Same energy: pick one, periodt.
  • ost::CommandOptionNoArg β€” CommandOption type for flags. No value, just vibes.
  • ost::CommandOptionParse β€” this is the CommandOptionParse interface class. The interface icon.

πŸ¦‹ Namespaces πŸ¦‹

  • ost

πŸ”₯ Functions πŸ”₯

__EXPORT CommandOptionParse * ost::makeCommandOptionParse (int argc,
    char **argv, const char *comment, CommandOption
    *options=defaultCommandOptionList)
  • makeCommandOptionParse will create an implementation of a CommandOptionParse object. That's the function, bestie, and it's doing exactly what it says on the tin.

πŸ’œ Variables πŸ’œ

  • __EXPORT CommandOption * ost::defaultCommandOptionList β€” this defines a linked list head pointer for all the command line options that use the default list.

πŸ’– Detailed Description πŸ’–

Command line option parsing interface. That's the whole thing, bestie. Short, sweet, slay.


πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for GNU CommonC++ from the source code. The robots did this one, and honestly? They ate. πŸ’…


okay bye bestie 🫢 this page is from GNU CommonC++ and it was stamped Sun Dec 27 2020, and yeah, it's the cmdoptns.h(3) manual. Stay parsed. ✨

πŸ“¦ where this page comes from