summaryrefslogtreecommitdiff
path: root/cmdutils.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmdutils.c')
-rw-r--r--cmdutils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmdutils.c b/cmdutils.c
index 8aeaf0f2d4..171fcfc840 100644
--- a/cmdutils.c
+++ b/cmdutils.c
@@ -83,6 +83,8 @@ void parse_options(int argc, char **argv, const OptionDef *options)
*po->u.int_arg = 1;
} else if (po->flags & OPT_INT) {
*po->u.int_arg = atoi(arg);
+ } else if (po->flags & OPT_FLOAT) {
+ *po->u.float_arg = atof(arg);
} else {
po->u.func_arg(arg);
}