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

# ost\_CommandOptionArg(3)

Class for options with an argument e.g.

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

## Constructor & Destructor Documentation

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

**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

### virtual ost::CommandOptionArg::~CommandOptionArg ()` [virtual]`

## Author

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