From 61213c401886884b73406c0e536b2f5ee97425e1 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Fri, 19 Jun 2009 15:40:37 +0200 Subject: improve --help output apk --help will list the generic options only and give a list of commands To get the details for a spefic command, 'apk command --help' should be used. --- src/search.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/search.c') diff --git a/src/search.c b/src/search.c index 5cfca5a..ada8606 100644 --- a/src/search.c +++ b/src/search.c @@ -28,7 +28,6 @@ struct search_query_ctx { static int search_list_print(apk_hash_item item, void *ctx) { - //struct apk_database *db = (struct apk_database *) ctx; struct apk_package *pkg = (struct apk_package *) item; printf("%s", pkg->name->name); @@ -137,7 +136,7 @@ static struct option search_options[] = { static struct apk_applet apk_search = { .name = "search", - .usage = "[--description|-d] [search_pattern]", + .usage = "[--description|-d] PATTERN", .context_size = sizeof(struct search_ctx), .num_options = ARRAY_SIZE(search_options), .options = search_options, -- cgit v1.2.3-60-g2f50