summaryrefslogtreecommitdiff
path: root/src/apk_applet.h
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/apk_applet.h
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/apk_applet.h')
-rw-r--r--src/apk_applet.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/apk_applet.h b/src/apk_applet.h
index 0eea731..0c7687e 100644
--- a/src/apk_applet.h
+++ b/src/apk_applet.h
@@ -17,6 +17,11 @@
#include "apk_defines.h"
#include "apk_database.h"
+#define APK_COMMAND_GROUP_INSTALL 0x0001
+#define APK_COMMAND_GROUP_SYSTEM 0x0002
+#define APK_COMMAND_GROUP_QUERY 0x0004
+#define APK_COMMAND_GROUP_REPO 0x0008
+
struct apk_option {
int val;
const char *name;
@@ -42,7 +47,7 @@ struct apk_applet {
const char *help;
const struct apk_option_group *optgroups[4];
- unsigned int open_flags, forced_flags, forced_force;
+ unsigned int open_flags, forced_flags, forced_force, command_groups;
int context_size;
int (*main)(void *ctx, struct apk_database *db, struct apk_string_array *args);