aboutsummaryrefslogtreecommitdiff
path: root/src/common/command_line.h
diff options
context:
space:
mode:
authorstoffu <stoffu@protonmail.ch>2017-10-19 21:57:49 +0900
committerstoffu <stoffu@protonmail.ch>2017-11-14 16:33:17 +0900
commit105425b7f69ae115ec287242fdf12d6a8458a10f (patch)
treefafc948c6e9ad0b0275c46e3972b30cccf126ef3 /src/common/command_line.h
parentMerge pull request #2694 (diff)
downloadmonero-105425b7f69ae115ec287242fdf12d6a8458a10f.tar.xz
simplewallet: reject invalid argument for boolean parameter
Diffstat (limited to 'src/common/command_line.h')
-rw-r--r--src/common/command_line.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/command_line.h b/src/common/command_line.h
index 04fd70be5..bfc8b19c6 100644
--- a/src/common/command_line.h
+++ b/src/common/command_line.h
@@ -45,6 +45,8 @@ namespace command_line
//! \return True if `str` is `is_iequal("y" || "yes" || `tr("yes"))`.
bool is_yes(const std::string& str);
+ //! \return True if `str` is `is_iequal("n" || "no" || `tr("no"))`.
+ bool is_no(const std::string& str);
template<typename T, bool required = false>
struct arg_descriptor;