All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ruediger Meier <sweet_f_a@gmx.de>
To: util-linux@vger.kernel.org
Subject: [PATCH 5/6] login: add --help text
Date: Mon, 26 Jun 2017 20:29:51 +0200	[thread overview]
Message-ID: <20170626182952.15988-6-sweet_f_a@gmx.de> (raw)
In-Reply-To: <20170626182952.15988-1-sweet_f_a@gmx.de>

From: Ruediger Meier <ruediger.meier@ga-group.nl>

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
---
 login-utils/login.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/login-utils/login.c b/login-utils/login.c
index ee06d03e8..08b2d3564 100644
--- a/login-utils/login.c
+++ b/login-utils/login.c
@@ -1101,6 +1101,14 @@ static void __attribute__((__noreturn__)) usage(void)
 	printf(_(" %s [-p] [-h <host>] [-H] [[-f] <username>]\n"), program_invocation_short_name);
 	fputs(USAGE_SEPARATOR, stdout);
 	fputs(_("Begin a session on the system.\n"), stdout);
+
+	fputs(USAGE_OPTIONS, stdout);
+	puts(_(" -p             do not destroy the environment"));
+	puts(_(" -f             skip a second login authentication"));
+	puts(_(" -h <host>      hostname to be used for utmp logging"));
+	puts(_(" -H             suppress hostname in the login prompt"));
+	printf("     --help     %s\n", USAGE_HELP_TXT);
+	printf(" -V, --version  %s\n", USAGE_VERSION_TXT);
 	printf(USAGE_MAN_TAIL("login(1)"));
 	exit(EXIT_SUCCESS);
 }
-- 
2.12.3


  parent reply	other threads:[~2017-06-26 18:30 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-26 18:29 [PATCH 0/6] consolidate help/version option descriptions Ruediger Meier
2017-06-26 18:29 ` [PATCH 1/6] misc: revert to the old USAGE_HELP strings Ruediger Meier
2017-06-26 18:29 ` [PATCH 2/6] misc: introduce PRINT_USAGE_HELP() Ruediger Meier
2017-06-27  9:46   ` Karel Zak
2017-06-27 10:48     ` Rüdiger Meier
2017-06-27 12:19       ` Karel Zak
2017-06-26 18:29 ` [PATCH 3/6] misc: consolidate all --help option descriptions Ruediger Meier
2017-06-26 18:29 ` [PATCH 4/6] blockdev: improve --help and man page Ruediger Meier
2017-06-26 18:29 ` Ruediger Meier [this message]
2017-06-26 18:29 ` [PATCH 6/6] misc: update --help content again Ruediger Meier
2017-06-27 12:42   ` J William Piggott
2017-06-27 13:26     ` Rüdiger Meier
2017-06-27 15:12       ` J William Piggott
2017-06-27 16:35         ` Rüdiger Meier
2017-06-27 19:08           ` J William Piggott
2017-06-28 21:59             ` Ruediger Meier
2017-07-28 13:34               ` J William Piggott
2017-06-27  9:49 ` [PATCH 0/6] consolidate help/version option descriptions 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=20170626182952.15988-6-sweet_f_a@gmx.de \
    --to=sweet_f_a@gmx.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.