- printf(_("\nUsage:\n"
- " %s [fsck-options] [fs-options] [filesys ...]\n"),
- program_invocation_short_name);
-
- puts(_( "\nOptions:\n"
- " -A check all filesystems\n"
- " -R skip root filesystem; useful only with `-A'\n"
- " -M do not check mounted filesystems\n"
- " -t <type> specify filesystem types to be checked;\n"
- " type is allowed to be comma-separated list\n"
- " -P check filesystems in parallel, including root\n"
- " -r report statistics for each device fsck\n"
- " -s serialize fsck operations\n"
- " -l lock the device using flock()\n"
- " -N do not execute, just show what would be done\n"
- " -T do not show the title on startup\n"
- " -C <fd> display progress bar; file descriptor is for GUIs\n"
- " -V explain what is being done\n"
- " -? display this help and exit\n\n"
- "See fsck.* commands for fs-options."));
-
- exit(FSCK_EX_USAGE);
+ FILE *out = stdout;
+ fputs(USAGE_HEADER, out);
+ fprintf(out, _(" %s [options] -- [fs-options] [<filesystem> ...]\n"),
+ program_invocation_short_name);
+
+ fputs(USAGE_SEPARATOR, out);
+ fputs(_("Check and repair a Linux filesystem.\n"), out);
+
+ fputs(USAGE_OPTIONS, out);
+ fputs(_(" -A check all filesystems\n"), out);
+ fputs(_(" -C [<fd>] display progress bar; file descriptor is for GUIs\n"), out);
+ fputs(_(" -l lock the device to guarantee exclusive access\n"), out);
+ fputs(_(" -M do not check mounted filesystems\n"), out);
+ fputs(_(" -N do not execute, just show what would be done\n"), out);
+ fputs(_(" -P check filesystems in parallel, including root\n"), out);
+ fputs(_(" -R skip root filesystem; useful only with '-A'\n"), out);
+ fputs(_(" -r [<fd>] report statistics for each device checked;\n"
+ " file descriptor is for GUIs\n"), out);
+ fputs(_(" -s serialize the checking operations\n"), out);
+ fputs(_(" -T do not show the title on startup\n"), out);
+ fputs(_(" -t <type> specify filesystem types to be checked;\n"
+ " <type> is allowed to be a comma-separated list\n"), out);
+ fputs(_(" -V explain what is being done\n"), out);
+
+ fputs(USAGE_SEPARATOR, out);
+ printf( " -?, --help %s\n", USAGE_OPTSTR_HELP);
+ printf( " --version %s\n", USAGE_OPTSTR_VERSION);
+ fputs(USAGE_SEPARATOR, out);
+ fputs(_("See the specific fsck.* commands for available fs-options."), out);
+ printf(USAGE_MAN_TAIL("fsck(8)"));
+ exit(FSCK_EX_OK);