summaryrefslogtreecommitdiff
path: root/src/cli.c
diff options
context:
space:
mode:
authorNick White <git@njw.me.uk>2009-09-11 18:25:32 +0100
committerNick White <git@njw.me.uk>2009-09-11 18:25:32 +0100
commitcddfe7c2b8a9786680833e5a66765ad9b214809b (patch)
tree07c4b0517992a6ebe1c1092f0dc48fbe416abe66 /src/cli.c
parent25b301b2068cdfb6d86b334df781eb900f1952a2 (diff)
Updated getht -h message to be closer to GNU standards
Diffstat (limited to 'src/cli.c')
-rw-r--r--src/cli.c29
1 files changed, 18 insertions, 11 deletions
diff --git a/src/cli.c b/src/cli.c
index 9903f65..e1bedcf 100644
--- a/src/cli.c
+++ b/src/cli.c
@@ -58,15 +58,22 @@ void list_issues(iss ** issue, int no_of_issues, int verbose)
void showusage()
{
- printf("Usage: getht [-ulafhvV] [-d issno]\n");
- printf("-u | --update Update contents files\n");
- printf("-l | --list-issues List available issues\n");
- printf("-a | --download-all Download all issues\n");
- printf("-d | --download-issue issno Download issue number issno\n");
- printf("-s | --download-section secno Download section number secno\n");
- printf("-f | --force Force re-download of existing files\n");
- printf("-h | --help Print this help message\n");
- printf("-q | --quiet Make output less verbose\n");
- printf("-v | --verbose Make output more verbose\n");
- printf("-V | --version Print version information\n");
+ printf("Usage: getht [options] -a\n");
+ printf(" or: getht [options] -d issno [-s secno]\n");
+ printf(" or: getht [options] -l\n");
+ printf("Downloads issue(s) of Hinduism Today\n\n");
+ printf("Download options:\n");
+ printf(" -a, --download-all Download all issues\n");
+ printf(" -d, --download-issue issno Download issue number issno\n");
+ printf(" -s, --download-section secno Download section number secno\n");
+ printf(" -f, --force Force re-download of existing files\n");
+ printf("Discovery options:\n");
+ printf(" -l, --list-issues List available issues\n");
+ printf(" -u, --update Update contents files\n");
+ printf("Global options:\n");
+ printf(" -q, --quiet Make output less verbose\n");
+ printf(" -v, --verbose Make output more verbose\n");
+ printf("Other options:\n");
+ printf(" -h, --help Print this help message\n");
+ printf(" -V, --version Print version information\n");
}