Modified the usage output to mimic GNU applications output.

This commit is contained in:
Svend Sorensen
2006-03-01 19:39:02 +00:00
parent 06448a1021
commit a3149234c1
3 changed files with 15 additions and 9 deletions

View File

@@ -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);