static void __attribute__((__noreturn__)) usage(FILE *out)
{
- fprintf(out, _("\nUsage:\n"
- " %s [options] iso9660_image_file\n"),
+ fputs(USAGE_HEADER, out);
+ fprintf(out,
+ _(" %s [options] iso9660_image_file\n"),
program_invocation_short_name);
-
- fprintf(out, _("\nOptions:\n"
- " -d, --divisor=NUM divide bytes NUM\n"
- " -x, --sectors show sector count and size\n"
- " -V, --version output version information and exit\n"
- " -H, --help display this help and exit\n\n"));
+ fputs(USAGE_OPTIONS, out);
+ fputs(_(" -d, --divisor=NUM divide bytes NUM\n"), out);
+ fputs(_(" -x, --sectors show sector count and size\n"), out);
+ fputs(USAGE_SEPARATOR, out);
+ fputs(USAGE_HELP, out);
+ fputs(USAGE_VERSION, out);
+ fprintf(out, USAGE_MAN_TAIL("isosize(8)"));
exit(out == stderr ? EXIT_FAILURE : EXIT_SUCCESS);
}
xflag = 1;
break;
case 'V':
- printf(_("%s (%s)\n"), program_invocation_short_name,
- PACKAGE_STRING);
+ printf(UTIL_LINUX_VERSION);
return EXIT_SUCCESS;
case 'h':
usage(stdout);