From a3149234c1c9f3ce9e10bff3cb39aab7cd58b15a Mon Sep 17 00:00:00 2001 From: Svend Sorensen Date: Wed, 1 Mar 2006 19:39:02 +0000 Subject: [PATCH] Modified the usage output to mimic GNU applications output. --- src/tools/cuebreakpoints.c | 8 +++++--- src/tools/cueconvert.c | 8 +++++--- src/tools/cueprint.c | 8 +++++--- 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/src/tools/cuebreakpoints.c b/src/tools/cuebreakpoints.c index a6dd188..e24cbd1 100644 --- a/src/tools/cuebreakpoints.c +++ b/src/tools/cuebreakpoints.c @@ -31,8 +31,10 @@ enum GapMode {APPEND, PREPEND, SPLIT}; void usage (int status) { if (0 == status) { - printf("%s: usage: cuebreakpoints [option...] [file...]\n", progname); - printf("OPTIONS\n" + printf("Usage: %s [option...] [file...]\n", progname); + printf("Report track breakpoints from a CUE or TOC file.\n" + "\n" + "OPTIONS\n" "-h, --help print usage\n" "-i, --input-format cue|toc set format of file(s)\n" "--append-gaps append pregaps to previous track (default)\n" @@ -40,7 +42,7 @@ void usage (int status) "--split-gaps split at beginning and end of pregaps\n" "-V, --version print version information\n"); } else { - fprintf(stderr, "run `%s --help' for usage\n", progname); + fprintf(stderr, "Try `%s --help' for more information.\n", progname); } exit (status); diff --git a/src/tools/cueconvert.c b/src/tools/cueconvert.c index e9bc121..6d74dfd 100644 --- a/src/tools/cueconvert.c +++ b/src/tools/cueconvert.c @@ -22,14 +22,16 @@ char *progname; void usage (int status) { if (0 == status) { - printf("%s: usage: cueconvert [option...] [infile [outfile]]\n", progname); - printf("OPTIONS\n" + printf("Usage: %s [option...] [infile [outfile]]\n", progname); + printf("Convert file between the CUE and TOC formats.\n" + "\n" + "OPTIONS\n" "-h, --help print usage\n" "-i, --input-format cue|toc set format of input file\n" "-o, --output-format cue|toc set format of output file\n" "-V, --version print version information\n"); } else { - fprintf(stderr, "run `%s --help' for usage\n", progname); + fprintf(stderr, "Try `%s --help' for more information.\n", progname); } exit (status); diff --git a/src/tools/cueprint.c b/src/tools/cueprint.c index 18ad412..6b4fdb9 100644 --- a/src/tools/cueprint.c +++ b/src/tools/cueprint.c @@ -64,8 +64,10 @@ char *progname; void usage (int status) { if (0 == status) { - printf("%s: usage: cueprint [option...] [file...]\n", progname); - printf("OPTIONS\n" + printf("Usage: %s [option...] [file...]\n", progname); + printf("Report disc and track information from a CUE or TOC file.\n" + "\n" + "OPTIONS\n" "-h, --help print usage\n" "-i, --input-format cue|toc set format of file(s)\n" "-n, --track-number only print track information for single track\n" @@ -78,7 +80,7 @@ void usage (int status) "See the manual page for more information.\n", D_TEMPLATE, T_TEMPLATE); } else { - fprintf(stderr, "run `%s --help' for usage\n", progname); + fprintf(stderr, "Try `%s --help' for more information.\n", progname); } exit (status);