mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 21:32:25 +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.
|
* @property {object} The option accepts an integer argument.
|
||||||
* @final
|
* @final
|
||||||
*/
|
*/
|
||||||
INT: ArgType("int", parseInt),
|
INT: ArgType("int", function (val) parseInt(val)),
|
||||||
/**
|
/**
|
||||||
* @property {object} The option accepts a float argument.
|
* @property {object} The option accepts a float argument.
|
||||||
* @final
|
* @final
|
||||||
*/
|
*/
|
||||||
FLOAT: ArgType("float", parseFloat),
|
FLOAT: ArgType("float", function (val) parseFloat(val)),
|
||||||
/**
|
/**
|
||||||
* @property {object} The option accepts a string list argument.
|
* @property {object} The option accepts a string list argument.
|
||||||
* E.g. "foo,bar"
|
* E.g. "foo,bar"
|
||||||
|
|||||||
Reference in New Issue
Block a user