X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=blobdiff_plain;f=src%2Futil.cpp;h=f540500a3510c06238d24d00e8983014ca86648d;hp=2f28b95b8e2b64ecc5e2dc7b6f3a7ed37bef4c42;hb=fe326c477b0b109819653dc2657495f867ff8616;hpb=287661c39d5288af8526148b3c7f60c2216bcab3 diff --git a/src/util.cpp b/src/util.cpp index 2f28b95..f540500 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -588,6 +588,13 @@ int64_t GetArg(const std::string& strArg, int64_t nDefault) return nDefault; } +int32_t GetArgInt(const std::string& strArg, int32_t nDefault) +{ + if (mapArgs.count(strArg)) + return strtol(mapArgs[strArg]); + return nDefault; +} + bool GetBoolArg(const std::string& strArg, bool fDefault) { if (mapArgs.count(strArg))