---
name: "CommandOptionArg"
section: "3cc"
platform: "linux"
package: "libcommoncpp2-dev"
version: "1.0.13-5"
release: "Debian 3.1 (Sarge)"
platforms: ["linux"]
url: "https://new.carta.tech/CommandOptionArg"
---

# CommandOptionArg(3cc)

Class for options with an argument e.g.

## NAME

CommandOptionArg - Class for options with an argument e.g.

## SYNOPSIS

`#include <cmdoptns.h>`

Inherits **CommandOptionWithArg**.

### Public Methods

**CommandOptionArg** (const char \*inOptionName, const char \*inOptionLetter, const char \*inDescription, bool inRequired=false, **CommandOption** \*\*ppNext=&**defaultCommandOptionList**)\
 *CommandOptionArg contructor.* virtual **~CommandOptionArg** ()\

## DETAILED DESCRIPTION

Class for options with an argument e.g.

\--option value .

## CONSTRUCTOR & DESTRUCTOR DOCUMENTATION

### 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 CommandOptionArg::~CommandOptionArg ()` [virtual]`

## AUTHOR

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