diff options
Diffstat (limited to 'toolsrc/src/commands_list.cpp')
| -rw-r--r-- | toolsrc/src/commands_list.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/toolsrc/src/commands_list.cpp b/toolsrc/src/commands_list.cpp index 199ee5c16..6451ac5eb 100644 --- a/toolsrc/src/commands_list.cpp +++ b/toolsrc/src/commands_list.cpp @@ -1,7 +1,8 @@ #include "pch.h" + #include "vcpkg_Commands.h" -#include "vcpkglib.h" #include "vcpkg_System.h" +#include "vcpkglib.h" #include "vcpkglib_helpers.h" namespace vcpkg::Commands::List @@ -17,7 +18,8 @@ namespace vcpkg::Commands::List void perform_and_exit(const VcpkgCmdArguments& args, const VcpkgPaths& paths) { static const std::string example = Strings::format( - "The argument should be a substring to search for, or no argument to display all installed libraries.\n%s", Commands::Help::create_example_string("list png")); + "The argument should be a substring to search for, or no argument to display all installed libraries.\n%s", + Commands::Help::create_example_string("list png")); args.check_max_arg_count(1, example); args.check_and_get_optional_command_arguments({}); @@ -30,9 +32,9 @@ namespace vcpkg::Commands::List Checks::exit_success(VCPKG_LINE_INFO); } - std::sort(installed_packages.begin(), installed_packages.end(), - [ ]( const StatusParagraph* lhs, const StatusParagraph* rhs ) -> bool - { + std::sort(installed_packages.begin(), + installed_packages.end(), + [](const StatusParagraph* lhs, const StatusParagraph* rhs) -> bool { return lhs->package.displayname() < rhs->package.displayname(); }); |
