Revision 9e5381a2 cmdutils.c
cmdutils.c | ||
---|---|---|
170 | 170 |
} else if (po->flags & OPT_FLOAT) { |
171 | 171 |
*po->u.float_arg = parse_number_or_die(opt, arg, OPT_FLOAT, -1.0/0.0, 1.0/0.0); |
172 | 172 |
} else if (po->flags & OPT_FUNC2) { |
173 |
if(po->u.func2_arg(opt, arg)<0) |
|
174 |
goto unknown_opt; |
|
173 |
if (po->u.func2_arg(opt, arg) < 0) { |
|
174 |
fprintf(stderr, "%s: invalid value '%s' for option '%s'\n", argv[0], arg, opt); |
|
175 |
exit(1); |
|
176 |
} |
|
175 | 177 |
} else { |
176 | 178 |
po->u.func_arg(arg); |
177 | 179 |
} |
Also available in: Unified diff