mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 17:42:27 +01:00
Fix CommandOption.INT parsing. Closes issue #293.
This commit is contained in:
@@ -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