diff --git a/src/Command.ts b/src/Command.ts index dd1a2fa..4c452f8 100644 --- a/src/Command.ts +++ b/src/Command.ts @@ -232,9 +232,11 @@ export class Command { let usageTemplate: string = ""; this.parameters && this.parameters.map((e) => { - usageTemplate += `[${e.name} (${e.type}${ - e.optional ? ", optional" : "" - })] `; + usageTemplate += `[${e.name} (${ + e.choices + ? e.choices.map((c) => c.name).join(" / ") + : e.type + }${e.optional ? ", optional" : ""})] `; }); return usageTemplate; }