Nicer args parse

This commit is contained in:
Daniel Odendahl Jr
2017-04-23 23:27:03 +00:00
parent 678d3d3ae8
commit 11a610ab5e
28 changed files with 37 additions and 95 deletions
+1 -3
View File
@@ -11,9 +11,7 @@ module.exports = class ReverseCommand extends Command {
key: 'text',
prompt: 'What text would you like to reverse?',
type: 'string',
parse: text => {
return text.split('').reverse().join('');
}
parse: text => text.split('').reverse().join('')
}]
});
}