Don't warn for outdated vcpkg if command is autocomplete

This commit is contained in:
Alexander Karatarakis 2017-10-16 17:24:17 -07:00
parent 0051e7477b
commit 7ed8d4f75e

View File

@ -106,7 +106,11 @@ static void inner(const VcpkgCmdArguments& args)
const int exit_code = chdir(paths.root.c_str());
#endif
Checks::check_exit(VCPKG_LINE_INFO, exit_code == 0, "Changing the working dir failed");
Commands::Version::warn_if_vcpkg_version_mismatch(paths);
if (args.command != "autocomplete")
{
Commands::Version::warn_if_vcpkg_version_mismatch(paths);
}
if (const auto command_function = find_command(Commands::get_available_commands_type_b()))
{