summaryrefslogtreecommitdiff
path: root/src/app_del.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/app_del.c')
-rw-r--r--src/app_del.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/app_del.c b/src/app_del.c
index 32398b3..aa7ab4f 100644
--- a/src/app_del.c
+++ b/src/app_del.c
@@ -19,13 +19,10 @@ struct del_ctx {
int errors;
};
-enum {
- OPT_DEL_redepends,
-};
+#define DEL_OPTIONS(OPT) \
+ OPT(OPT_DEL_redepends, APK_OPT_SH("r") "rdepends")
-static const char option_desc[] =
- APK_OPTAPPLET
- APK_OPT2n("rdepends", "r");
+APK_OPT_APPLET(option_desc, DEL_OPTIONS);
static int option_parse_applet(void *pctx, struct apk_db_options *dbopts, int opt, const char *optarg)
{