From: Bernhard Voelker <mail@bernhard-voelker.de>
To: "util-linux@vger.kernel.org" <util-linux@vger.kernel.org>
Subject: [PATCH] utmpdump: document optional filename argument
Date: Tue, 03 Jul 2012 10:32:03 +0200 [thread overview]
Message-ID: <4FF2AE03.1010507@bernhard-voelker.de> (raw)
The filename argument vanished from usage() in commit v2.21-791-gc8a6af0,
and I found it worthwhile to document the behavior in the man page
when filename is missing (i.e. stdin is used instead).
Have a nice day,
Berny
>From e7c7a6300a20f7fd8f1e2211ac856cbceba740d2 Mon Sep 17 00:00:00 2001
From: Bernhard Voelker <mail@bernhard-voelker.de>
Date: Tue, 3 Jul 2012 09:42:55 +0200
Subject: [PATCH] utmpdump: document optional filename argument
Signed-off-by: Bernhard Voelker <mail@bernhard-voelker.de>
---
login-utils/utmpdump.1 | 5 ++++-
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 65dfe32..4df49dd 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 ac072d4..fd3e74a 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"
--
1.7.7
next reply other threads:[~2012-07-03 8:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-03 8:32 Bernhard Voelker [this message]
2012-07-09 15:11 ` [PATCH] utmpdump: document optional filename argument Karel Zak
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4FF2AE03.1010507@bernhard-voelker.de \
--to=mail@bernhard-voelker.de \
--cc=util-linux@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).