This commit is contained in:
Daniel Odendahl Jr
2017-06-01 08:44:02 +00:00
parent 7802bb49cb
commit 14f85f94bd
129 changed files with 1915 additions and 1720 deletions
+6 -3
View File
@@ -15,9 +15,12 @@ module.exports = class ClearSettingCommand extends Command {
key: 'setting',
prompt: 'What setting do you want to clear?',
type: 'string',
validate: setting => {
if (settings.includes(setting)) return true;
return `Please enter one of the following: ${settings.join(', ')}.`;
validate: (setting) => {
if (settings.includes(setting)) {
return true;
} else {
return `Please enter one of the following: ${settings.join(', ')}.`;
}
}
}
]