diff options
Diffstat (limited to 'src/libutil/args.hh')
-rw-r--r-- | src/libutil/args.hh | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/libutil/args.hh b/src/libutil/args.hh index 823d843aa..3783bc84f 100644 --- a/src/libutil/args.hh +++ b/src/libutil/args.hh @@ -87,10 +87,7 @@ protected: template<class I> Handler(I * dest) : fun([=](std::vector<std::string> ss) { - if (auto n = string2Int<I>(ss[0])) - *dest = *n; - else - throw UsageError("'%s' is not an integer", ss[0]); + *dest = string2IntWithUnitPrefix<I>(ss[0]); }) , arity(1) { } |