summaryrefslogtreecommitdiffstats
path: root/disk-utils/fsck.8
diff options
context:
space:
mode:
authorRuediger Meier2017-06-21 15:33:57 +0200
committerRuediger Meier2017-06-22 21:34:51 +0200
commit58745f35996cb70b51a7e25a2398ee5cbe9295c3 (patch)
tree379199464bd777c741b4bdff9d0c975632ff6a49 /disk-utils/fsck.8
parentsetarch: use errtryhelp() (diff)
downloadkernel-qcow2-util-linux-58745f35996cb70b51a7e25a2398ee5cbe9295c3.tar.gz
kernel-qcow2-util-linux-58745f35996cb70b51a7e25a2398ee5cbe9295c3.tar.xz
kernel-qcow2-util-linux-58745f35996cb70b51a7e25a2398ee5cbe9295c3.zip
fsck: add --help and --version
Also cleanup usage() function, never write usage to stderr. FIXME: - currently strtou32_or_err() exits with wrong exit code. - option -C does not use a safe strto*_err function Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Diffstat (limited to 'disk-utils/fsck.8')
-rw-r--r--disk-utils/fsck.86
1 files changed, 6 insertions, 0 deletions
diff --git a/disk-utils/fsck.8 b/disk-utils/fsck.8
index 3148e4284..b3096bec6 100644
--- a/disk-utils/fsck.8
+++ b/disk-utils/fsck.8
@@ -309,6 +309,12 @@ Don't show the title on startup.
.B \-V
Produce verbose output, including all filesystem-specific commands
that are executed.
+.TP
+\fB\-?\fR, \fB\-\-help\fR
+Display help text and exit.
+.TP
+\fB\-\-version\fR
+Display version information and exit.
.SH FILESYSTEM SPECIFIC OPTIONS
.B Options which are not understood by fsck are passed to the filesystem-specific checker!
.PP