diff options
author | Timo Teras <timo.teras@iki.fi> | 2009-06-25 15:14:07 +0300 |
---|---|---|
committer | Timo Teras <timo.teras@iki.fi> | 2009-06-25 15:14:07 +0300 |
commit | 7a29678aac20ac9e113704f8a5743f6051edef8d (patch) | |
tree | 11c9583a66fa5fc1122e6d993b92dc7cd591e237 /src/upgrade.c | |
parent | 3a488564753cee51832b6824128249a99eb4613b (diff) | |
download | apk-tools-7a29678aac20ac9e113704f8a5743f6051edef8d.tar.gz apk-tools-7a29678aac20ac9e113704f8a5743f6051edef8d.tar.bz2 apk-tools-7a29678aac20ac9e113704f8a5743f6051edef8d.tar.xz apk-tools-7a29678aac20ac9e113704f8a5743f6051edef8d.zip |
help: auto construct help
And add some more verbosity to the help message.
Diffstat (limited to 'src/upgrade.c')
-rw-r--r-- | src/upgrade.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/upgrade.c b/src/upgrade.c index 59a113d..ff30c81 100644 --- a/src/upgrade.c +++ b/src/upgrade.c @@ -57,13 +57,16 @@ err: return r; } -static struct option upgrade_options[] = { - { "available", no_argument, NULL, 'a' }, +static struct apk_option upgrade_options[] = { + { 'a', "available", + "Re-install or downgrade if currently installed package is not " + "currently available from any repository" }, }; static struct apk_applet apk_upgrade = { .name = "upgrade", - .usage = "[-a|--available]", + .help = "Upgrade (or downgrade with -a) the currently installed " + "packages to versions available in repositories.", .num_options = ARRAY_SIZE(upgrade_options), .options = upgrade_options, .parse = upgrade_parse, |