diff options
| author | monero-project <sempre.amaro@gmail.com> | 2014-06-12 19:14:25 -0400 |
|---|---|---|
| committer | monero-project <sempre.amaro@gmail.com> | 2014-06-12 19:14:25 -0400 |
| commit | c3203c86c671d41ed4a07231c8a5054124d2e7d2 (patch) | |
| tree | 06a7aceb34d1e53ca4bfd28d3fbc13b5ef0d8a30 /src/common/command_line.cpp | |
| parent | ea99573f9905ee29e06df26779db265e98ce66a4 (diff) | |
| parent | da37b6f15b6eb1f7b4ac9802a3350413d303a5c9 (diff) | |
| download | monzero-core-c3203c86c671d41ed4a07231c8a5054124d2e7d2.tar.gz monzero-core-c3203c86c671d41ed4a07231c8a5054124d2e7d2.tar.xz monzero-core-c3203c86c671d41ed4a07231c8a5054124d2e7d2.zip | |
Merge pull request #34 from tewinget/master
Add electrum-seed wallet backup/recovery
Diffstat (limited to 'src/common/command_line.cpp')
| -rw-r--r-- | src/common/command_line.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/common/command_line.cpp b/src/common/command_line.cpp index 0b90345d9..d507f36a7 100644 --- a/src/common/command_line.cpp +++ b/src/common/command_line.cpp @@ -3,9 +3,21 @@ // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "command_line.h" +#include "string_tools.h" namespace command_line { + std::string input_line(const std::string& prompt) + { + std::cout << prompt; + + std::string buf; + std::getline(std::cin, buf); + + return epee::string_tools::trim(buf); + + } + const arg_descriptor<bool> arg_help = {"help", "Produce help message"}; const arg_descriptor<bool> arg_version = {"version", "Output version information"}; const arg_descriptor<std::string> arg_data_dir = {"data-dir", "Specify data directory"}; |
