diff --git a/src/lib/command/Command.js b/src/lib/command/Command.js index 435f7921..344c8171 100644 --- a/src/lib/command/Command.js +++ b/src/lib/command/Command.js @@ -127,7 +127,6 @@ export default class Command * @instance */ this.argOpts = info.argOpts || {}; - this.argOpts.stringArgs = this.argOpts.stringArgs || false; this.argOpts.separator = this.argOpts.separator || ' '; /** @@ -291,6 +290,5 @@ export default class Command /** * @typedef {Object} ArgOpts - Object containing options for * controlling how command arguments will be parsed - * @property {boolean} stringArgs - Whether or not to parse all args as strings * @property {string} [separator=' '] - The charactor to separate args by */ diff --git a/src/lib/command/CommandDispatcher.js b/src/lib/command/CommandDispatcher.js index 2242ac6c..27c913c6 100644 --- a/src/lib/command/CommandDispatcher.js +++ b/src/lib/command/CommandDispatcher.js @@ -166,7 +166,6 @@ export default class CommandDispatcher let args = content.split(' ').slice(1).join(' ') .split(command ? command.argOpts.separator : ' ') - .map(a => !isNaN(a) && command && !command.argOpts.stringArgs ? parseFloat(a) : a) .map(a => typeof a === 'string' ? a.trim() : a) .filter(a => a !== '' && !(typeof a !== 'string' && isNaN(a)));