Revert "choice argument type"

This reverts commit 679bb538cb.
This commit is contained in:
Daniel Odendahl Jr
2018-03-17 13:22:07 +00:00
parent 12e8af1e92
commit d74e2c9d96
17 changed files with 121 additions and 84 deletions
+6 -2
View File
@@ -22,8 +22,12 @@ module.exports = class HatCommand extends Command {
{
key: 'type',
prompt: `What type of hat would you like to use? Either ${list(hats, 'or')}.`,
type: 'choice',
choices: hats
type: 'string',
validate: type => {
if (hats.includes(type.toLowerCase())) return true;
return `Invalid type, please enter either ${list(hats, 'or')}.`;
},
parse: type => type.toLowerCase()
},
{
key: 'user',