summaryrefslogtreecommitdiff
path: root/src/search.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2020-01-16 17:31:38 -0500
committerTimo Teräs <timo.teras@iki.fi>2020-01-26 09:03:18 +0200
commitb62d252b7b51cd4ca8030577849842b07e1913fb (patch)
tree657a053d882c5d642e3700862fc65795c5d22152 /src/search.c
parent5b6c6e3573f241b19a174ea74d8258f4b547d860 (diff)
downloadapk-tools-b62d252b7b51cd4ca8030577849842b07e1913fb.tar.gz
apk-tools-b62d252b7b51cd4ca8030577849842b07e1913fb.tar.bz2
apk-tools-b62d252b7b51cd4ca8030577849842b07e1913fb.tar.xz
apk-tools-b62d252b7b51cd4ca8030577849842b07e1913fb.zip
Update apk to make man pages sole source of truth
Detailed docs have been removed from the apk binaries, in favor of git-style short summaries of each command.
Diffstat (limited to 'src/search.c')
-rw-r--r--src/search.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/search.c b/src/search.c
index 0b00a3b..fa5b267 100644
--- a/src/search.c
+++ b/src/search.c
@@ -109,13 +109,13 @@ static int option_parse_applet(void *ctx, struct apk_db_options *dbopts, int opt
}
static const struct apk_option options_applet[] = {
- { 'a', "all", "Show all package versions (instead of latest only)" },
- { 'd', "description", "Search package descriptions (implies -a)" },
- { 'x', "exact", "Require exact match (instead of substring match)" },
- { 'e', NULL, "Synonym for -x (deprecated)" },
- { 'o', "origin", "Print origin package name instead of the subpackage" },
- { 'r', "rdepends", "Print reverse dependencies of package" },
- { 0x10000, "has-origin","List packages that have the given origin" },
+ { 'a', "all" },
+ { 'd', "description" },
+ { 'x', "exact" },
+ { 'e', NULL },
+ { 'o', "origin" },
+ { 'r', "rdepends" },
+ { 0x10000, "has-origin" },
};
static const struct apk_option_group optgroup_applet = {
@@ -206,7 +206,6 @@ static int search_main(void *pctx, struct apk_database *db, struct apk_string_ar
static struct apk_applet apk_search = {
.name = "search",
- .help = "Search package by PATTERNs or by indexed dependencies",
.arguments = "PATTERN",
.open_flags = APK_OPENF_READ | APK_OPENF_NO_STATE,
.command_groups = APK_COMMAND_GROUP_QUERY,