diff options
author | Bernhard Voelker | 2012-07-03 09:42:55 +0200 |
---|---|---|
committer | Karel Zak | 2012-07-09 17:11:00 +0200 |
commit | 4810de912a9d4fa76dba3c7be16a8da86225aa9f (patch) | |
tree | 793a7040d0fca8bcb56ef8ae153793054116458f | |
parent | findmnt: fix typo in manpage (diff) | |
download | kernel-qcow2-util-linux-4810de912a9d4fa76dba3c7be16a8da86225aa9f.tar.gz kernel-qcow2-util-linux-4810de912a9d4fa76dba3c7be16a8da86225aa9f.tar.xz kernel-qcow2-util-linux-4810de912a9d4fa76dba3c7be16a8da86225aa9f.zip |
utmpdump: document optional filename argument
Signed-off-by: Bernhard Voelker <mail@bernhard-voelker.de>
-rw-r--r-- | login-utils/utmpdump.1 | 5 | ||||
-rw-r--r-- | login-utils/utmpdump.c | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/login-utils/utmpdump.1 b/login-utils/utmpdump.1 index 65dfe329d..4df49dd99 100644 --- a/login-utils/utmpdump.1 +++ b/login-utils/utmpdump.1 @@ -21,10 +21,13 @@ utmpdump \- dump UTMP and WTMP files in raw format .SH SYNOPSIS .B utmpdump .RB [ \-frh ] -.I filename +.I [ filename ] .SH DESCRIPTION \fButmpdump\fP is a simple program to dump UTMP and WTMP files in raw format, so they can be examined. +\fButmpdump\fP reads from stdin unless a +.I filename +is passed. .SH OPTIONS .IP "\fB\-f, \-\-follow\fP" output appended data as the file grows. diff --git a/login-utils/utmpdump.c b/login-utils/utmpdump.c index ac072d4b4..fd3e74a32 100644 --- a/login-utils/utmpdump.c +++ b/login-utils/utmpdump.c @@ -190,7 +190,7 @@ static void __attribute__((__noreturn__)) usage(FILE *out) fputs(USAGE_HEADER, out); fprintf(out, - _(" %s [options]\n"), program_invocation_short_name); + _(" %s [options] [filename]\n"), program_invocation_short_name); fputs(USAGE_OPTIONS, out); fputs(_(" -f, --follow output appended data as the file grows\n" |