# CommandArg Interface

Module
import { CommandArg } from "@tsed/cli-core"
Source/packages/cli-core/src/interfaces/CommandParameters.ts

# Overview

interface CommandArg {
    description: string;
    type?: Type<any>;
    itemType?: Type<any>;
    defaultValue?: string | number | boolean | any;
    required?: boolean;
}

# Members

description: string

Description of the argument


type?: Type<any>

Use type to parse the option (String, Number, Boolean, Array)


itemType?: Type<any>

Use item type to parse items


defaultValue?: string | number | boolean | any

Default value


required?: boolean

Define a require option