Skip to content

Commit

Permalink
fix: read from example or examples
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed May 31, 2018
1 parent 2f76246 commit d08f33b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d08f33b

Please sign in to comment.