File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
packages/nest-commander/src Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,8 @@ export interface CommandMetadata {
6060 options ?: CommandOptions ;
6161 subCommands ?: Array < Type < CommandRunner > > ;
6262 aliases ?: string [ ] ;
63+ allowUnknownOptions ?: boolean ;
64+ allowExcessArgs ?: boolean ;
6365}
6466
6567export type RootCommandMetadata = Omit < CommandMetadata , 'name' > & {
Original file line number Diff line number Diff line change @@ -141,6 +141,12 @@ ${cliPluginError(
141141 if ( this . options . helpConfiguration ) {
142142 newCommand . configureHelp ( this . options . helpConfiguration ) ;
143143 }
144+ if ( command . command . allowUnknownOptions ) {
145+ newCommand . allowUnknownOption ( ) ;
146+ }
147+ if ( command . command . allowExcessArgs ) {
148+ newCommand . allowExcessArguments ( ) ;
149+ }
144150 if ( command . command . arguments ) {
145151 this . mapArgumentDescriptions (
146152 newCommand ,
You can’t perform that action at this time.
0 commit comments