Export command interface

This commit is contained in:
Erik 2023-08-15 16:43:50 +03:00
parent 9497ad6996
commit 8881f5c6d9
Signed by: Navy.gif
GPG Key ID: 2532FBBB61C65A68
2 changed files with 2 additions and 2 deletions

View File

@ -7,4 +7,4 @@ export { SubcommandOption } from './src/classes/SubcommandOption.js';
export { IResolver } from './src/interfaces/Resolver.js'; export { IResolver } from './src/interfaces/Resolver.js';
export { OptionType, CommandOptionDefinition } from './src/interfaces/CommandOption.js'; export { OptionType, CommandOptionDefinition } from './src/interfaces/CommandOption.js';
export { CommandDefinition } from './src/interfaces/Command.js'; export { CommandDefinition, ICommand } from './src/interfaces/Command.js';

View File

@ -138,7 +138,7 @@ class Parser extends EventEmitter {
parseResult.subcommandGroup = group?.name || null; parseResult.subcommandGroup = group?.name || null;
if (!subcommand) 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}`); this.debug(`Got ${subcommand.name}`);
} }