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
@@ -14,8 +14,12 @@ module.exports = class BinaryCommand extends Command {
{
key: 'mode',
prompt: `Would you like to ${list(modes, 'or')}?`,
type: 'choice',
choices: modes
type: 'string',
validate: mode => {
if (modes.includes(mode.toLowerCase())) return true;
return `Invalid mode, please enter either ${list(modes, 'or')}.`;
},
parse: mode => mode.toLowerCase()
},
{
key: 'text',