Export command interface
This commit is contained in:
parent
9497ad6996
commit
8881f5c6d9
2
index.ts
2
index.ts
@ -7,4 +7,4 @@ export { SubcommandOption } from './src/classes/SubcommandOption.js';
|
||||
|
||||
export { IResolver } from './src/interfaces/Resolver.js';
|
||||
export { OptionType, CommandOptionDefinition } from './src/interfaces/CommandOption.js';
|
||||
export { CommandDefinition } from './src/interfaces/Command.js';
|
||||
export { CommandDefinition, ICommand } from './src/interfaces/Command.js';
|
@ -138,7 +138,7 @@ class Parser extends EventEmitter {
|
||||
parseResult.subcommandGroup = group?.name || null;
|
||||
|
||||
if (!subcommand)
|
||||
throw new ParseError(`Expecting subcommand, one of ${subcommands.map((s) => s.name)}`); // return { showUsage: true, verbose: true };
|
||||
throw new ParseError(`Expecting subcommand, one of ${subcommands.map((s) => s.name).join(', ')}`); // return { showUsage: true, verbose: true };
|
||||
this.debug(`Got ${subcommand.name}`);
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user