summaryrefslogtreecommitdiffstats
path: root/src/fetch.c
diff options
context:
space:
mode:
authorTimo Teras <timo.teras@iki.fi>2009-06-25 15:14:07 +0300
committerTimo Teras <timo.teras@iki.fi>2009-06-25 15:14:07 +0300
commit7a29678aac20ac9e113704f8a5743f6051edef8d (patch)
tree11c9583a66fa5fc1122e6d993b92dc7cd591e237 /src/fetch.c
parent3a488564753cee51832b6824128249a99eb4613b (diff)
downloadapk-tools-7a29678aac20ac9e113704f8a5743f6051edef8d.tar.bz2
apk-tools-7a29678aac20ac9e113704f8a5743f6051edef8d.tar.xz
help: auto construct help
And add some more verbosity to the help message.
Diffstat (limited to 'src/fetch.c')
-rw-r--r--src/fetch.c19
1 files changed, 11 insertions, 8 deletions
diff --git a/src/fetch.c b/src/fetch.c
index fe257d0..84f0b39 100644
--- a/src/fetch.c
+++ b/src/fetch.c
@@ -4,7 +4,7 @@
* Copyright (C) 2008 Timo Teräs <timo.teras@iki.fi>
* 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.
*/
@@ -184,17 +184,20 @@ err:
return r;
}
-static struct option fetch_options[] = {
- { "recursive", no_argument, NULL, 'R' },
- { "stdout", no_argument, NULL, 's' },
- { "link", no_argument, NULL, 'L' },
- { "output", required_argument, NULL, 'o' },
+static struct apk_option fetch_options[] = {
+ { 'l', "link", "Create hard links if possible" },
+ { 'R', "recursive", "Fetch the PACKAGE and all it's dependencies" },
+ { 's', "stdout",
+ "Dump the .apk to stdout (incompatible with -o and -R)" },
+ { 'o', "output", "Directory to place the PACKAGEs to",
+ required_argument, "DIR" },
};
static struct apk_applet apk_fetch = {
.name = "fetch",
- .usage = "[-R|--recursive|--stdout] [-L|--link] [-o|--output DIR]\n"
- "\t\t PACKAGE...",
+ .help = "Download PACKAGEs from repositories to a local directory from "
+ "which a local mirror repository can be created.",
+ .arguments = "PACKAGE...",
.context_size = sizeof(struct fetch_ctx),
.num_options = ARRAY_SIZE(fetch_options),
.options = fetch_options,