mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-17 03:22:32 +02:00
Fix CommandOption.INT parsing. Closes issue #293.
This commit is contained in:
1 parent
b5d7d3e4ff
commit
0989bbcbf4
1 file changed
+2
-2
@@ -69,12 +69,12 @@ update(CommandOption, {
|
||||
* @property {object} The option accepts an integer argument.
|
||||
* @final
|
||||
*/
|
||||
INT: ArgType("int", parseInt),
|
||||
INT: ArgType("int", function (val) parseInt(val)),
|
||||
/**
|
||||
* @property {object} The option accepts a float argument.
|
||||
* @final
|
||||
*/
|
||||
FLOAT: ArgType("float", parseFloat),
|
||||
FLOAT: ArgType("float", function (val) parseFloat(val)),
|
||||
/**
|
||||
* @property {object} The option accepts a string list argument.
|
||||
* E.g. "foo,bar"
|
||||
|
||||
Reference in new issue
Block a user