diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-06-19 15:40:37 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-06-19 15:40:37 +0200 |
commit | 61213c401886884b73406c0e536b2f5ee97425e1 (patch) | |
tree | 1f9eccef792182e03adf39cfe4d6ed09471b4036 /src/search.c | |
parent | 20a1217e866f9fe15c4de3ed28144084509e4ffa (diff) | |
download | apk-tools-61213c401886884b73406c0e536b2f5ee97425e1.tar.gz apk-tools-61213c401886884b73406c0e536b2f5ee97425e1.tar.bz2 apk-tools-61213c401886884b73406c0e536b2f5ee97425e1.tar.xz apk-tools-61213c401886884b73406c0e536b2f5ee97425e1.zip |
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.
Diffstat (limited to 'src/search.c')
-rw-r--r-- | src/search.c | 3 |
1 files changed, 1 insertions, 2 deletions
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, |