diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2017-01-12 17:35:33 -0800 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2017-01-12 17:43:05 -0800 |
| commit | df2a05e8546281135c6ea12430734d74371bcf46 (patch) | |
| tree | f64c97d48fbcb506def9b089cc4311736dcf08de /toolsrc/src/commands_help.cpp | |
| parent | 4c51e65d5004311c7c7ba0687e7dba934ba986c1 (diff) | |
| download | vcpkg-df2a05e8546281135c6ea12430734d74371bcf46.tar.gz vcpkg-df2a05e8546281135c6ea12430734d74371bcf46.zip | |
Introduce Command namespace. Refactoring
Diffstat (limited to 'toolsrc/src/commands_help.cpp')
| -rw-r--r-- | toolsrc/src/commands_help.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/toolsrc/src/commands_help.cpp b/toolsrc/src/commands_help.cpp index fd02d948e..5baec62c7 100644 --- a/toolsrc/src/commands_help.cpp +++ b/toolsrc/src/commands_help.cpp @@ -2,7 +2,7 @@ #include "vcpkg_System.h" #include "vcpkg_info.h" -namespace vcpkg +namespace vcpkg::Commands { void version_command(const vcpkg_cmd_arguments& args) { @@ -19,18 +19,18 @@ namespace vcpkg args.check_max_arg_count(1); if (args.command_arguments.empty()) { - print_usage(); + Commands::Helpers::print_usage(); exit(EXIT_SUCCESS); } const auto& topic = args.command_arguments[0]; if (topic == "triplet") { - help_topic_valid_triplet(paths); + Commands::help_topic_valid_triplet(paths); } else { System::println(System::color::error, "Error: unknown topic %s", topic); - print_usage(); + Commands::Helpers::print_usage(); exit(EXIT_FAILURE); } exit(EXIT_SUCCESS); |
