diff --git a/src/core/command/help.ts b/src/core/command/help.ts index 44dab4c..e02fbb9 100644 --- a/src/core/command/help.ts +++ b/src/core/command/help.ts @@ -137,8 +137,10 @@ export class HelpInfo implements Printable { let module = require(path) as CommandModule; commandConstructor = module.default; brief = - commandConstructor && - (commandConstructor.brief || commandConstructor.description); + (commandConstructor && + (commandConstructor.brief || commandConstructor.description)) || + module.brief || + module.description; } if (existingItem && existingItem.group === groupIndex) {