summaryrefslogtreecommitdiff
path: root/src/index.c
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2018-01-09 01:47:21 +0000
committerWilliam Pitcock <nenolod@dereferenced.org>2018-01-09 17:07:13 +0000
commitabf7c2838bc09bf515b7c2f0f6f631786b3e7c08 (patch)
treecee8942d9a95afbfba3d6f6d30ef36fba4b4f51c /src/index.c
parent118f29c895b15993155a2cd825403ea65a606018 (diff)
downloadapk-tools-abf7c2838bc09bf515b7c2f0f6f631786b3e7c08.tar.gz
apk-tools-abf7c2838bc09bf515b7c2f0f6f631786b3e7c08.tar.bz2
apk-tools-abf7c2838bc09bf515b7c2f0f6f631786b3e7c08.tar.xz
apk-tools-abf7c2838bc09bf515b7c2f0f6f631786b3e7c08.zip
apk: usage: cleanup help text when no applet is selected
Diffstat (limited to 'src/index.c')
-rw-r--r--src/index.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/index.c b/src/index.c
index 35bd340..09c32ba 100644
--- a/src/index.c
+++ b/src/index.c
@@ -262,6 +262,7 @@ static struct apk_applet apk_index = {
.help = "Create repository index file from FILEs",
.arguments = "FILE...",
.open_flags = APK_OPENF_READ | APK_OPENF_NO_STATE | APK_OPENF_NO_REPOS,
+ .command_groups = APK_COMMAND_GROUP_REPO,
.context_size = sizeof(struct index_ctx),
.optgroups = { &optgroup_global, &optgroup_applet },
.main = index_main,