aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/src/commands_search.cpp
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2017-06-09 23:45:52 -0700
committerRobert Schumacher <roschuma@microsoft.com>2017-06-09 23:45:52 -0700
commite5dc2f9c8ff5dfe3266a0c144a1e21b96fa62e25 (patch)
tree6c4beaa4cb505a86dc8084f1e533e903bb4c7c1e /toolsrc/src/commands_search.cpp
parentc0be6aecc6c817e556e6bfd1251842615023644e (diff)
downloadvcpkg-e5dc2f9c8ff5dfe3266a0c144a1e21b96fa62e25.tar.gz
vcpkg-e5dc2f9c8ff5dfe3266a0c144a1e21b96fa62e25.zip
[vcpkg] Rename --full-desc to --x-full-desc
Diffstat (limited to 'toolsrc/src/commands_search.cpp')
-rw-r--r--toolsrc/src/commands_search.cpp20
1 files changed, 9 insertions, 11 deletions
diff --git a/toolsrc/src/commands_search.cpp b/toolsrc/src/commands_search.cpp
index 6ec2a5395..bdb1e5d77 100644
--- a/toolsrc/src/commands_search.cpp
+++ b/toolsrc/src/commands_search.cpp
@@ -8,9 +8,8 @@
namespace vcpkg::Commands::Search
{
- static const std::string OPTION_GRAPH = "--graph"; // TODO: This should find a better home, eventually
- static const std::string OPTION_FULLDESC = "--full-desc"; // TODO: This should find a better home, eventually
-
+ static const std::string OPTION_GRAPH = "--graph"; // TODO: This should find a better home, eventually
+ static const std::string OPTION_FULLDESC = "--x-full-desc"; // TODO: This should find a better home, eventually
static std::string replace_dashes_with_underscore(const std::string& input)
{
@@ -51,17 +50,15 @@ namespace vcpkg::Commands::Search
{
if (FullDesc)
{
- System::println("%-20s %-16s %s",
- source_paragraph.name,
- source_paragraph.version,
- source_paragraph.description);
+ System::println(
+ "%-20s %-16s %s", source_paragraph.name, source_paragraph.version, source_paragraph.description);
}
else
{
System::println("%-20s %-16s %s",
- source_paragraph.name,
- source_paragraph.version,
- details::shorten_description(source_paragraph.description));
+ source_paragraph.name,
+ source_paragraph.version,
+ details::shorten_description(source_paragraph.description));
}
}
@@ -71,7 +68,8 @@ namespace vcpkg::Commands::Search
"The argument should be a substring to search for, or no argument to display all libraries.\n%s",
Commands::Help::create_example_string("search png"));
args.check_max_arg_count(1, example);
- const std::unordered_set<std::string> options = args.check_and_get_optional_command_arguments({OPTION_GRAPH, OPTION_FULLDESC});
+ const std::unordered_set<std::string> options =
+ args.check_and_get_optional_command_arguments({OPTION_GRAPH, OPTION_FULLDESC});
const std::vector<SourceParagraph> source_paragraphs =
Paragraphs::load_all_ports(paths.get_filesystem(), paths.ports);