From cddfe7c2b8a9786680833e5a66765ad9b214809b Mon Sep 17 00:00:00 2001 From: Nick White Date: Fri, 11 Sep 2009 18:25:32 +0100 Subject: Updated getht -h message to be closer to GNU standards --- src/cli.c | 29 ++++++++++++++++++----------- 1 file 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"); } -- cgit v1.2.3