Archived
choices now visible in the help message (if available)
This commit is contained in:
1 parent
45b0589468
commit
8ac97cab53
1 file changed
+5
-3
+5
-3
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user