Home > @rushstack/ts-command-line > IBaseCommandLineDefinitionWithArgument

IBaseCommandLineDefinitionWithArgument interface

The common base interface for parameter types that accept an argument.


export interface IBaseCommandLineDefinitionWithArgument extends IBaseCommandLineDefinition 

Extends: IBaseCommandLineDefinition


An argument is an accompanying command-line token, such as “123” in the example “–max-count 123”.


Property Type Description
argumentName string The name of the argument, which will be shown in the command-line help.
completions? () => Promise<string[]> (Optional) An optional callback that provides a list of custom choices for tab completion.