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
@@ -25,9 +25,7 @@ module.exports = class MapCommand extends Command {
key: 'location',
prompt: 'What location you like to get a map image for?',
type: 'string',
parse: text => {
return encodeURIComponent(text);
}
parse: text => encodeURIComponent(text)
}]
});
}