2014-03-04 00:07:58 +02:00
|
|
|
// Copyright (c) 2012-2013 The Cryptonote developers
|
|
|
|
// Distributed under the MIT/X11 software license, see the accompanying
|
|
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
|
|
|
|
#include "command_line.h"
|
2014-06-09 01:12:38 +03:00
|
|
|
#include "string_tools.h"
|
2014-03-04 00:07:58 +02:00
|
|
|
|
|
|
|
namespace command_line
|
|
|
|
{
|
2014-06-09 01:12:38 +03:00
|
|
|
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);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2014-03-04 00:07:58 +02:00
|
|
|
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"};
|
|
|
|
}
|