From 7a29678aac20ac9e113704f8a5743f6051edef8d Mon Sep 17 00:00:00 2001 From: Timo Teras Date: Thu, 25 Jun 2009 15:14:07 +0300 Subject: help: auto construct help And add some more verbosity to the help message. --- src/search.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/search.c') 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, -- cgit v1.2.3-60-g2f50