diff options
author | Lee Clagett <code@leeclagett.com> | 2016-11-25 21:07:45 -0500 |
---|---|---|
committer | Lee Clagett <code@leeclagett.com> | 2016-11-25 21:57:27 -0500 |
commit | 91ffb61c25561a9143e9a8e713be16b09b03f633 (patch) | |
tree | f459cd141f40b861ae861dc80914a162b41d305d /src/common/command_line.h | |
parent | Merge pull request #1372 (diff) | |
download | monero-91ffb61c25561a9143e9a8e713be16b09b03f633.tar.xz |
Added command_line::is_yes
Diffstat (limited to 'src/common/command_line.h')
-rw-r--r-- | src/common/command_line.h | 3 |
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; |