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

# CommandOptionRest(3cc)

It only makes sense to have a single one of these set and it is exclusive with CommandOptionCollect. CommandOption to take the rest of the command line.

## NAME

CommandOptionRest - It only makes sense to have a single one of these set and it is exclusive with **CommandOptionCollect**. **CommandOption** to take the rest of the command line.

## SYNOPSIS

`#include <cmdoptns.h>`

Inherits **CommandOptionWithArg**.

### Public Methods

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

## DETAILED DESCRIPTION

It only makes sense to have a single one of these set and it is exclusive with **CommandOptionCollect**. **CommandOption** to take the rest of the command line.

It is the option that takes the rest of the command line options that are not part of any other options. e.g. 'strace -ofile command arg1 arg2'. The 'command arg1 arg2' part is placed in objects of this class.

## CONSTRUCTOR & DESTRUCTOR DOCUMENTATION

### CommandOptionRest::CommandOptionRest (const char \* inOptionName, const char \* inOptionLetter, const char \* inDescription, bool inRequired = false, CommandOption \*\* ppNext = &defaultCommandOptionList)

CommandOptionRest contructor.

This sets the optionType for this object to Trailing.

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

## AUTHOR

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