diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2016-09-30 16:54:07 -0700 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2016-09-30 16:54:07 -0700 |
| commit | 4b0f3d87befb84c819afbf664614281491a784b9 (patch) | |
| tree | e36c167739be60fec7f4704939936506bc1de86e /toolsrc/src/main.cpp | |
| parent | d31498d0e7c22251b22594763d91c9f36a32629a (diff) | |
| download | vcpkg-4b0f3d87befb84c819afbf664614281491a784b9.tar.gz vcpkg-4b0f3d87befb84c819afbf664614281491a784b9.zip | |
Introduce Input::check_triplet()
Diffstat (limited to 'toolsrc/src/main.cpp')
| -rw-r--r-- | toolsrc/src/main.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/toolsrc/src/main.cpp b/toolsrc/src/main.cpp index a317330ff..b49f2bdef 100644 --- a/toolsrc/src/main.cpp +++ b/toolsrc/src/main.cpp @@ -11,6 +11,7 @@ #include <Shlobj.h> #include "vcpkg_Files.h" #include "vcpkg_System.h" +#include "vcpkg_Input.h" using namespace vcpkg; @@ -87,13 +88,7 @@ static void inner(const vcpkg_cmd_arguments& args) } } - if (!paths.is_valid_triplet(default_target_triplet)) - { - System::println(System::color::error, "Error: invalid triplet: %s", default_target_triplet.value); - TrackProperty("error", "invalid triplet: " + default_target_triplet.value); - help_topic_valid_triplet(paths); - exit(EXIT_FAILURE); - } + Input::check_triplet(default_target_triplet, paths); if (auto command_function = find_command(args.command, get_available_commands_type_a())) { |
