From 23a45e7db6fe997add43aeb4f3716e3083704e2a Mon Sep 17 00:00:00 2001 From: Alexander Karatarakis Date: Thu, 22 Sep 2016 01:24:26 -0700 Subject: Use System::println() --- toolsrc/src/commands_other.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'toolsrc/src') diff --git a/toolsrc/src/commands_other.cpp b/toolsrc/src/commands_other.cpp index be89d539f..f237d2726 100644 --- a/toolsrc/src/commands_other.cpp +++ b/toolsrc/src/commands_other.cpp @@ -1,12 +1,13 @@ #include "vcpkg_Commands.h" -#include +#include "vcpkg_System.h" #include "vcpkg.h" namespace vcpkg { void print_usage() { - std::cout << "Commands:\n" + System::println( + "Commands:\n" " vcpkg search [pat] Search for packages available to be built\n" " vcpkg install Install a package\n" " vcpkg remove Uninstall a package. \n" @@ -14,9 +15,9 @@ namespace vcpkg " vcpkg list List installed packages\n" " vcpkg update Display list of packages for updating\n" "\n" - << INTEGRATE_COMMAND_HELPSTRING << + "%s" // Integration help "\n" - " vcpkg edit Open up a port for editing (uses %EDITOR%, default 'code')\n" + " vcpkg edit Open up a port for editing (uses %%EDITOR%%, default 'code')\n" " vcpkg import Import a pre-built library\n" " vcpkg create \n" " [archivename] Create a new package\n" @@ -34,17 +35,16 @@ namespace vcpkg " (default: x86-windows, see 'vcpkg help triplet')\n" "\n" " --vcpkg-root Specify the vcpkg root directory\n" - " (default: %VCPKG_ROOT%)\n" + " (default: %%VCPKG_ROOT%%)\n" "\n" "For more help (including examples) see the accompanying README.md." - "\n"; + , INTEGRATE_COMMAND_HELPSTRING); } void print_example(const char* command_and_arguments) { - std::cout << - "Example:\n" - " vcpkg " << command_and_arguments << "\n"; + System::println("Example:\n" + " vcpkg %s", command_and_arguments); } void internal_test_command(const vcpkg_cmd_arguments& /*args*/, const vcpkg_paths& /*paths*/) -- cgit v1.2.3