aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/src/commands_version.cpp
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2017-01-12 17:41:50 -0800
committerAlexander Karatarakis <alkarata@microsoft.com>2017-01-12 17:47:53 -0800
commit8e1ed2c9a95fa5b9e0bb0a9849a6e20878696f8c (patch)
tree63f05d6d03d0a2b6567deb8ece99012ef89bb270 /toolsrc/src/commands_version.cpp
parentdf2a05e8546281135c6ea12430734d74371bcf46 (diff)
downloadvcpkg-8e1ed2c9a95fa5b9e0bb0a9849a6e20878696f8c.tar.gz
vcpkg-8e1ed2c9a95fa5b9e0bb0a9849a6e20878696f8c.zip
Place contact and version commands in different cpp files
Diffstat (limited to 'toolsrc/src/commands_version.cpp')
-rw-r--r--toolsrc/src/commands_version.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/toolsrc/src/commands_version.cpp b/toolsrc/src/commands_version.cpp
new file mode 100644
index 000000000..03cce32d4
--- /dev/null
+++ b/toolsrc/src/commands_version.cpp
@@ -0,0 +1,16 @@
+#include "vcpkg_Commands.h"
+#include "vcpkg_System.h"
+#include "vcpkg_info.h"
+
+namespace vcpkg::Commands
+{
+ void version_command(const vcpkg_cmd_arguments& args)
+ {
+ args.check_exact_arg_count(0);
+ System::println("Vcpkg package management program version %s\n"
+ "\n"
+ "See LICENSE.txt for license information.", Info::version()
+ );
+ exit(EXIT_SUCCESS);
+ }
+}