diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2016-09-30 17:09:23 -0700 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2016-09-30 17:09:23 -0700 |
| commit | 98b4a67fe1af6974f146b518c0f1644de290d8da (patch) | |
| tree | 015bea935501b3ae80c635b06da83e9591d9166c /toolsrc/src/main.cpp | |
| parent | 241ca8cd17929d53a5c10c4f366f6972d865ba4f (diff) | |
| parent | 188eac680ba930c51943d4af34de58bbd325dcb1 (diff) | |
| download | vcpkg-98b4a67fe1af6974f146b518c0f1644de290d8da.tar.gz vcpkg-98b4a67fe1af6974f146b518c0f1644de290d8da.zip | |
Merge branch 'master' of https://github.com/microsoft/vcpkg
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())) { |
