aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/command_parser_executor.cpp
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2018-04-21 21:55:28 +0200
committerRiccardo Spagni <ric@spagni.net>2018-04-21 21:55:28 +0200
commit7e98e9d7ce0766a046505f750decad2387a315ec (patch)
tree6a2def6b3fc455edc677122f91c0d248c99400b1 /src/daemon/command_parser_executor.cpp
parentMerge pull request #3624 (diff)
parentsimplewallet: add version command (diff)
downloadmonero-7e98e9d7ce0766a046505f750decad2387a315ec.tar.xz
Merge pull request #3630
51b511be simplewallet: add version command (moneromooo-monero) 35d1269f daemon: add a version command (moneromooo-monero)
Diffstat (limited to 'src/daemon/command_parser_executor.cpp')
-rw-r--r--src/daemon/command_parser_executor.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/daemon/command_parser_executor.cpp b/src/daemon/command_parser_executor.cpp
index 7a89ebc0c..28a7f1366 100644
--- a/src/daemon/command_parser_executor.cpp
+++ b/src/daemon/command_parser_executor.cpp
@@ -27,6 +27,7 @@
// THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "common/dns_utils.h"
+#include "version.h"
#include "daemon/command_parser_executor.h"
#undef MONERO_DEFAULT_LOG_CATEGORY
@@ -664,4 +665,10 @@ bool t_command_parser_executor::sync_info(const std::vector<std::string>& args)
return m_executor.sync_info();
}
+bool t_command_parser_executor::version(const std::vector<std::string>& args)
+{
+ std::cout << "Monero '" << MONERO_RELEASE_NAME << "' (v" << MONERO_VERSION_FULL << ")" << std::endl;
+ return true;
+}
+
} // namespace daemonize