Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/commands/Command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,14 +202,16 @@ export default abstract class Command {
})

cmd.action(async (...allParams: any[]) => {
const commanderCommand = allParams.pop() as CommanderStatic

if (allParams.length > 1) {
StdOutUtil.printError(
`Positional parameter not supported: ${allParams[0]}\n`,
true
)
}

const cmdLineOptions = await this.preAction(allParams[0])
const cmdLineOptions = await this.preAction(commanderCommand.opts())
const optionAliases: IOptionAliasWithDetails[] = this.getOptions()
.filter((opt) => opt && opt.name)
.reduce(
Expand Down
Loading