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

# CommandOptionNoArg(3cc)

CommandOption type for flags.

## NAME

CommandOptionNoArg - **CommandOption** type for flags.

## SYNOPSIS

`#include <cmdoptns.h>`

Inherits **CommandOption**.

### Public Methods

**CommandOptionNoArg** (const char \*inOptionName, const char \*inOptionLetter, const char \*inDescription, bool inRequired=false, **CommandOption** \*\*ppNext=&**defaultCommandOptionList**)\
 **CommandOptionArg** *contructor.* virtual void **foundOption** (**CommandOptionParse** \*cop, const char \*value=0)\
 **CommandOptionNoArg::foundOption** *will evpect a nil 'value' passed in.*

### Public Attributes

int **numSet**\
 *The number of times this value has been set.*

## DETAILED DESCRIPTION

**CommandOption** type for flags.

## CONSTRUCTOR & DESTRUCTOR DOCUMENTATION

### CommandOptionNoArg::CommandOptionNoArg (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 NoArg.

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

## MEMBER FUNCTION DOCUMENTATION

### virtual void CommandOptionNoArg::foundOption (CommandOptionParse \* cop, const char \* value = 0)` [virtual]`

**CommandOptionNoArg::foundOption** *will evpect a nil 'value' passed in.*

*Reimplemented from* **CommandOption***.*

## MEMBER DATA DOCUMENTATION

### int CommandOptionNoArg::numSet

*The number of times this value has been set.*

## AUTHOR

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