[vcpkg] Rename --full-desc to --x-full-desc
MODIFY
src/commands_list.cpp
src/commands_list.cpp
namespace vcpkg::Commands::List
{
- static const std::string OPTION_FULLDESC = "--full-desc"; // 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 void do_print(const StatusParagraph& pgh, bool FullDesc)
{
if (FullDesc)
{
- System::println("%-27s %-16s %s",
- pgh.package.displayname(),
- pgh.package.version,
- pgh.package.description);
+ System::println("%-27s %-16s %s", pgh.package.displayname(), pgh.package.version, pgh.package.description);
}
else
{
@@ -33,7 +30,8 @@ namespace vcpkg::Commands::List
"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);
- const std::unordered_set<std::string> options = args.check_and_get_optional_command_arguments({OPTION_FULLDESC});
+ const std::unordered_set<std::string> options =
+ args.check_and_get_optional_command_arguments({OPTION_FULLDESC});
const StatusParagraphs status_paragraphs = database_load_check(paths);
std::vector<StatusParagraph*> installed_packages = get_installed_ports(status_paragraphs);

MODIFY
src/commands_search.cpp
src/commands_search.cpp
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_FULLDESC = "--x-full-desc"; // TODO: This should find a better home, eventually
static std::string replace_dashes_with_underscore(const std::string& input)
{
@@ -51,10 +50,8 @@ 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
{
@@ -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);

[vcpkg] Rename --full-desc to --x-full-desc