gunshi / default / CommandOptions
Interface: CommandOptions<Options> 
Command options.
Type Parameters 
| Type Parameter | Default type | 
|---|---|
Options extends ArgOptions | ArgOptions | 
Properties 
| Property | Type | Description | 
|---|---|---|
 cwd? | string | Current working directory. | 
 description? | string | Command program description. | 
 leftMargin? | number | Left margin of the command output. | 
 locale? | string | Locale | Command program locale. | 
 middleMargin? | number | Middle margin of the command output. | 
 name? | string | Command program name. | 
 renderHeader? | null | (ctx) => Promise<string> | Render function the header section in the command usage. | 
 renderUsage? | null | (ctx) => Promise<string> | Render function the command usage. | 
 renderValidationErrors? | null | (ctx, error) => Promise<string> | Render function the validation errors. | 
 subCommands? | Map<string, | Command<any> | LazyCommand<any>> | Sub commands. | 
 translationAdapterFactory? | TranslationAdapterFactory | Translation adapter factory. | 
 usageOptionType? | boolean | Whether to display the usage option type. | 
 usageSilent? | boolean | Whether to display the command usage. | 
 version? | string | Command program version. | 
