diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2016-09-30 16:48:16 -0700 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2016-09-30 16:48:16 -0700 |
| commit | cddc4f612ee605788928dafcb6366c6478fdb401 (patch) | |
| tree | 756a551a9d40cdfd8ed4233620d56dc38058b4ee /toolsrc/src/commands_other.cpp | |
| parent | 39c0c7152f78f67418f7a0f97fe77699e8ed2d58 (diff) | |
| parent | bcb2be360a3ce577fc09fe1ffb6b7e0335ebb889 (diff) | |
| download | vcpkg-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.cpp | 10 |
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*/) |
