summaryrefslogtreecommitdiff
path: root/src/search.c
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-06-19 15:40:37 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2009-06-19 15:40:37 +0200
commit61213c401886884b73406c0e536b2f5ee97425e1 (patch)
tree1f9eccef792182e03adf39cfe4d6ed09471b4036 /src/search.c
parent20a1217e866f9fe15c4de3ed28144084509e4ffa (diff)
downloadapk-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.c3
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,