aboutsummaryrefslogtreecommitdiff
path: root/src/clients/cave/cmd_print_owners.cc
diff options
context:
space:
mode:
authorAvatar Alex Elsayed <eternaleye@gmail.com> 2011-06-27 18:49:23 -0700
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-06-30 10:27:28 +0100
commit21af4bf5f51e7e146ccd52b7c24f42ab12bea98c (patch)
tree21986cb21724e12d6cf7d40e98ba6d07ce170300 /src/clients/cave/cmd_print_owners.cc
parent24109768eccadd986a80080f8fe5db3ed0fc5b38 (diff)
downloadpaludis-21af4bf5f51e7e146ccd52b7c24f42ab12bea98c.tar.gz
paludis-21af4bf5f51e7e146ccd52b7c24f42ab12bea98c.tar.xz
Switch 'owner' and 'print-owners' cave subcommands from --match to --type
Diffstat (limited to 'src/clients/cave/cmd_print_owners.cc')
-rw-r--r--src/clients/cave/cmd_print_owners.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/clients/cave/cmd_print_owners.cc b/src/clients/cave/cmd_print_owners.cc
index 6a89ac0b3..c7636c575 100644
--- a/src/clients/cave/cmd_print_owners.cc
+++ b/src/clients/cave/cmd_print_owners.cc
@@ -52,11 +52,11 @@ namespace
}
args::ArgsGroup g_owner_options;
- args::EnumArg a_match;
+ args::EnumArg a_type;
PrintOwnersCommandLine() :
g_owner_options(main_options_section(), "Owner options", "Alter how the search is performed."),
- a_match(&g_owner_options, "match", 'm', "Which match algorithm to use",
+ a_type(&g_owner_options, "type", 't', "Which type of match algorithm to use",
args::EnumArg::EnumArgOptions
("auto", "If pattern starts with a /, full; if it contains a /, partial; otherwise, basename")
("basename", "Basename match")
@@ -64,7 +64,7 @@ namespace
("partial", "Partial match"),
"auto")
{
- add_usage_line("[ --match algorithm ] pattern");
+ add_usage_line("[ --type algorithm ] pattern");
}
};
@@ -92,7 +92,7 @@ PrintOwnersCommand::run(
if (std::distance(cmdline.begin_parameters(), cmdline.end_parameters()) != 1)
throw args::DoHelp("print-owners takes exactly one parameter");
- return owner_common(env, cmdline.a_match.argument(), *cmdline.begin_parameters(), false, &print_package_id);
+ return owner_common(env, cmdline.a_type.argument(), *cmdline.begin_parameters(), false, &print_package_id);
}
std::shared_ptr<args::ArgsHandler>