[vcpkg-remove-outdated] Add documentation for remove --outdated.
MODIFY
src/commands_help.cpp
src/commands_help.cpp
@@ -21,6 +21,7 @@ namespace vcpkg::Commands::Help
" vcpkg search [pat] Search for packages available to be built\n"
" vcpkg install <pkg> Install a package\n"
" vcpkg remove <pkg> Uninstall a package. \n"
+ " vcpkg remove --outdated Uninstall all out-of-date packages\n"
" vcpkg remove --purge <pkg> Uninstall and delete a package. \n"
" vcpkg list List installed packages\n"
" vcpkg update Display list of packages for updating\n"

MODIFY
src/commands_update.cpp
src/commands_update.cpp
@@ -58,7 +58,10 @@ namespace vcpkg::Commands::Update
{
System::println(" %-32s %s", package.spec.display_name(), package.version_diff.toString());
}
- System::println("\nTo update these packages, run\n vcpkg remove --purge <pkgs>...\n vcpkg install <pkgs>...");
+ System::println("\n"
+ "To update these packages, run\n"
+ " vcpkg remove --purge --outdated\n"
+ " vcpkg install <pkgs>...");
}
auto version_file = Files::read_contents(paths.root / "toolsrc" / "VERSION.txt");

[vcpkg-remove-outdated] Add documentation for remove --outdated.