# DEF NAR Define Number of ARGs

> Source: https://manual.pvxplus.com/directives/def-nar

## Format

**DEF NAR**=*value*

***Where:***

|  |  |
| --- | --- |
| *value* | Number of arguments. Must be between 0 (no arguments) and the ***higher*** of the original number of arguments on the Command line ***or*** the number defined using the **DEF ARG** directive. An out-of-range value results in an Error #41: Invalid integer encountered. |

## Description

The **DEF NAR** directive is used to reduce the number of arguments that a program sees. This changes the value returned by the **NAR** system variable.

*(The DEF NAR directive was added in PxPlus 2017.)*

## See Also

**[DEF ARG Define Temporary ARG Value](https://manual.pvxplus.com/directives/def-arg)**  
**[NAR Number of Arguments, Start PxPlus](https://manual.pvxplus.com/variables/nar)**  
**[ARG( ) Get/Process Arguments](https://manual.pvxplus.com/functions/arg)**
