aboutsummaryrefslogtreecommitdiff
path: root/src/common/command_line.h
diff options
context:
space:
mode:
authorLee Clagett <code@leeclagett.com>2016-11-25 21:07:45 -0500
committerLee Clagett <code@leeclagett.com>2016-11-25 21:57:27 -0500
commit91ffb61c25561a9143e9a8e713be16b09b03f633 (patch)
treef459cd141f40b861ae861dc80914a162b41d305d /src/common/command_line.h
parentMerge pull request #1372 (diff)
downloadmonero-91ffb61c25561a9143e9a8e713be16b09b03f633.tar.xz
Added command_line::is_yes
Diffstat (limited to '')
-rw-r--r--src/common/command_line.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/command_line.h b/src/common/command_line.h
index 0ea749168..98c115bb7 100644
--- a/src/common/command_line.h
+++ b/src/common/command_line.h
@@ -43,6 +43,9 @@ namespace command_line
std::string input_line(const std::string& prompt);
+ //! \return True if `str` is `is_iequal("y" || "yes" || `tr("yes"))`.
+ bool is_yes(const std::string& str);
+
template<typename T, bool required = false>
struct arg_descriptor;