---
name: "cmdoptns.h"
section: "3"
platform: "linux"
package: "libcommoncpp2-doc"
version: "1.8.1-10"
release: "Debian 11 (Bullseye)"
platforms: ["linux"]
url: "https://new.carta.tech/cmdoptns.h"
---

# cmdoptns.h(3)

Command line option parsing interface.

## NAME

cmdoptns.h - Command line option parsing interface.

## SYNOPSIS

`#include <cc++/string.h>`\

### Classes

class **ost::CommandOption**\
 **CommandOption** is the base class for all command line options.  class **ost::CommandOptionWithArg**\
 Derived class of **CommandOption** for options that have a value associated with them.  class **ost::CommandOptionArg**\
 Class for options with an argument e.g.  class **ost::CommandOptionRest**\
 It only makes sense to have a single one of these set and it is exclusive with **CommandOptionCollect**.  class **ost::CommandOptionCollect**\
 It only makes sense to have a single one of these set and it is also exclusive with **CommandOptionRest**.  class **ost::CommandOptionNoArg**\
 **CommandOption** type for flags.  class **ost::CommandOptionParse**\
 This is the **CommandOptionParse** interface class.

### 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.

### 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.

## Author

Generated automatically by Doxygen for GNU CommonC++ from the source code.
