From 7a29678aac20ac9e113704f8a5743f6051edef8d Mon Sep 17 00:00:00 2001 From: Timo Teras Date: Thu, 25 Jun 2009 15:14:07 +0300 Subject: help: auto construct help And add some more verbosity to the help message. --- src/audit.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/audit.c') diff --git a/src/audit.c b/src/audit.c index 65275d4..9ea0f25 100644 --- a/src/audit.c +++ b/src/audit.c @@ -4,7 +4,7 @@ * Copyright (C) 2008 Timo Teräs * All rights reserved. * - * This program is free software; you can redistribute it and/or modify it + * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 as published * by the Free Software Foundation. See http://www.gnu.org/ for details. */ @@ -128,13 +128,15 @@ static int audit_main(void *ctx, int argc, char **argv) return r; } -static struct option audit_options[] = { - { "backup", no_argument, NULL, 0x10000 }, +static struct apk_option audit_options[] = { + { 0x10000, "backup", + "List all modified configuration files that need to be backed up" }, }; static struct apk_applet apk_audit = { .name = "audit", - .usage = "--backup", + .help = "Audit the filesystem for changes compared to installed " + "database.", .context_size = sizeof(struct audit_ctx), .num_options = ARRAY_SIZE(audit_options), .options = audit_options, -- cgit v1.2.3