diff options
author | Riccardo Spagni <ric@spagni.net> | 2016-12-04 22:01:07 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2016-12-04 22:01:07 +0200 |
commit | 35e5909a10155e8e18866e8c9600e4c16f1c5f6b (patch) | |
tree | ea4b2bf56121b1fb834dc7433d1b84c49a040d4e /src/common/command_line.h | |
parent | Merge pull request #1365 (diff) | |
parent | Added command_line::is_yes (diff) | |
download | monero-35e5909a10155e8e18866e8c9600e4c16f1c5f6b.tar.xz |
Merge pull request #1378
91ffb61c Added command_line::is_yes (Lee Clagett)
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; |