---
name: "clig_Rest"
section: "7"
platform: "linux"
package: "clig"
version: "1.9.11.1-3"
release: "Debian 5.0 (Lenny)"
platforms: ["linux"]
url: "https://new.carta.tech/clig_Rest"
---

# clig\_Rest(7)

declare command line arguments not associated with any option

## NAME

::clig::Rest - declare command line arguments not associated with any option

## SYNOPSIS

```
package require clig
namespace import ::clig::*
setSpec db
```

**Rest** *name usage* \[**-c** *lo hi*\]

## DESCRIPTION

The **Rest** command specifies, what the parser should do with command line arguments not associated with any option. Option **-c** specifies how man non-option arguments are allowed on the command line  (see clig::String(n)). The default values for *lo* and *hi* are 0 and  **oo** respectively.

Without a  **Rest**-declaration the parser will generate an error message and terminate the program.

If a **Rest** is declared, non-option arguments are returned by the parser as described below.

## PARSER RESULT

### tcl

Within a Tcl-script, the parser will set the variable with name *varname* in the stack-frame of its caller to the arguments on the command line which are not parameters of any option.

### C

Mainly for historical reasons, the structure returned by the parser contains the slots **int argc** and **char \*\*argv**. They contain the arguments on the command line which are not parameters of any option.

Example use of **Rest**:

```
Rest infiles {input files} -c 1 oo
```

## SEE ALSO

[clig\_Name(7)](/clig_Name/7.md), [clig\_Double(7)](/clig_Double/7.md), [clig(1)](/clig/1.md), [clig\_Usage(7)](/clig_Usage/7.md), [clig\_Long(7)](/clig_Long/7.md), [clig\_Version(7)](/clig_Version/7.md), [clig\_Float(7)](/clig_Float/7.md), [clig\_Description(7)](/clig_Description/7.md), [clig\_String(7)](/clig_String/7.md), [clig\_Flag(7)](/clig_Flag/7.md), [clig\_Commandline(7)](/clig_Commandline/7.md), [clig\_parseCmdline(7)](/clig_parseCmdline/7.md), [clig\_Int(7)](/clig_Int/7.md)
