aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/src/commands_other.cpp
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2016-09-30 16:48:16 -0700
committerRobert Schumacher <roschuma@microsoft.com>2016-09-30 16:48:16 -0700
commitcddc4f612ee605788928dafcb6366c6478fdb401 (patch)
tree756a551a9d40cdfd8ed4233620d56dc38058b4ee /toolsrc/src/commands_other.cpp
parent39c0c7152f78f67418f7a0f97fe77699e8ed2d58 (diff)
parentbcb2be360a3ce577fc09fe1ffb6b7e0335ebb889 (diff)
downloadvcpkg-cddc4f612ee605788928dafcb6366c6478fdb401.tar.gz
vcpkg-cddc4f612ee605788928dafcb6366c6478fdb401.zip
Merge branch 'master' of https://github.com/microsoft/vcpkg
Diffstat (limited to 'toolsrc/src/commands_other.cpp')
-rw-r--r--toolsrc/src/commands_other.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/toolsrc/src/commands_other.cpp b/toolsrc/src/commands_other.cpp
index f4fad6690..4ba4112d4 100644
--- a/toolsrc/src/commands_other.cpp
+++ b/toolsrc/src/commands_other.cpp
@@ -41,10 +41,16 @@ namespace vcpkg
, INTEGRATE_COMMAND_HELPSTRING);
}
+ std::string create_example_string(const char* command_and_arguments)
+ {
+ std::string cs = Strings::format("Example:\n"
+ " vcpkg %s", command_and_arguments);
+ return cs;
+ }
+
void print_example(const char* command_and_arguments)
{
- System::println("Example:\n"
- " vcpkg %s", command_and_arguments);
+ System::println(create_example_string(command_and_arguments).c_str());
}
void internal_test_command(const vcpkg_cmd_arguments& /*args*/, const vcpkg_paths& /*paths*/)