summaryrefslogtreecommitdiff
path: root/src/search.c
diff options
context:
space:
mode:
authorTimo Teras <timo.teras@iki.fi>2009-06-25 15:14:07 +0300
committerTimo Teras <timo.teras@iki.fi>2009-06-25 15:14:07 +0300
commit7a29678aac20ac9e113704f8a5743f6051edef8d (patch)
tree11c9583a66fa5fc1122e6d993b92dc7cd591e237 /src/search.c
parent3a488564753cee51832b6824128249a99eb4613b (diff)
downloadapk-tools-7a29678aac20ac9e113704f8a5743f6051edef8d.tar.gz
apk-tools-7a29678aac20ac9e113704f8a5743f6051edef8d.tar.bz2
apk-tools-7a29678aac20ac9e113704f8a5743f6051edef8d.tar.xz
apk-tools-7a29678aac20ac9e113704f8a5743f6051edef8d.zip
help: auto construct help
And add some more verbosity to the help message.
Diffstat (limited to 'src/search.c')
-rw-r--r--src/search.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/search.c b/src/search.c
index ada8606..9acf4f3 100644
--- a/src/search.c
+++ b/src/search.c
@@ -130,13 +130,14 @@ static int search_main(void *ctx, int argc, char **argv)
return r;
}
-static struct option search_options[] = {
- { "description", no_argument, NULL, 'd' },
+static struct apk_option search_options[] = {
+ { 'd', "description", "Search also package descriptions" },
};
static struct apk_applet apk_search = {
.name = "search",
- .usage = "[--description|-d] PATTERN",
+ .help = "Search package names (and descriptions) by wildcard PATTERN.",
+ .arguments = "PATTERN",
.context_size = sizeof(struct search_ctx),
.num_options = ARRAY_SIZE(search_options),
.options = search_options,