Modified the usage output to mimic GNU applications output.
This commit is contained in:
@@ -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 <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);
|
||||
|
||||
Reference in New Issue
Block a user