From d08f33b1a3a061489ff7c798db7ca3cb05928dd8 Mon Sep 17 00:00:00 2001 From: Jeff Dickey <216188+jdxcode@users.noreply.github.com> Date: Wed, 30 May 2018 18:33:24 -0700 Subject: [PATCH] fix: read from `example` or `examples` --- src/command.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/command.ts b/src/command.ts index ceceace4..3445b60a 100644 --- a/src/command.ts +++ b/src/command.ts @@ -39,7 +39,7 @@ export default class CommandHelp { this.flags(flags), this.description(cmd), this.aliases(cmd.aliases), - this.examples(cmd.examples), + this.examples(cmd.examples || (cmd as any).example), ]).join('\n\n') if (this.opts.stripAnsi) output = stripAnsi(output) return output