From 91ffb61c25561a9143e9a8e713be16b09b03f633 Mon Sep 17 00:00:00 2001 From: Lee Clagett Date: Fri, 25 Nov 2016 21:07:45 -0500 Subject: Added command_line::is_yes --- src/common/command_line.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/common/command_line.h') 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 struct arg_descriptor; -- cgit v1.2.3