[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[hurd] 18/28: boot: Tidy up the argument parser.
From: |
Samuel Thibault |
Subject: |
[hurd] 18/28: boot: Tidy up the argument parser. |
Date: |
Wed, 16 Nov 2016 08:30:27 +0000 |
This is an automated email from the git hooks/post-receive script.
sthibault pushed a commit to branch upstream
in repository hurd.
commit 61f89952020ff1ff34e391ae78acd2da51476c41
Author: Justus Winter <address@hidden>
Date: Tue Nov 1 15:07:07 2016 +0100
boot: Tidy up the argument parser.
* boot/boot.c (options): Group options together. Do not end help
texts with a colon.
(args_doc): Remove variable.
(main): Group the store options together.
---
boot/boot.c | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/boot/boot.c b/boot/boot.c
index 244988a..db5c396 100644
--- a/boot/boot.c
+++ b/boot/boot.c
@@ -221,6 +221,7 @@ const char *argp_program_version = STANDARD_HURD_VERSION
(boot);
static struct argp_option options[] =
{
+ { NULL, 0, NULL, 0, "Boot options:" },
{ "boot-script", OPT_BOOT_SCRIPT, "BOOT-SCRIPT", 0,
"boot script to execute" },
{ "boot-root", 'D', "DIR", 0,
@@ -232,14 +233,13 @@ static struct argp_option options[] =
{ "pause" , 'd', 0, 0,
"Pause for user confirmation at various times during booting" },
{ "isig", 'I', 0, 0,
- "Do not disable terminal signals, so you can suspend and interrupt boot."},
+ "Do not disable terminal signals, so you can suspend and interrupt boot"},
{ "device", 'f', "device_name=device_file", 0,
- "Specify a device file used by subhurd and its virtual name."},
+ "Specify a device file used by subhurd and its virtual name"},
{ "privileged", OPT_PRIVILEGED, NULL, 0,
"Allow the subhurd to access privileged kernel ports"},
{ 0 }
};
-static char args_doc[] = "";
static char doc[] = "Boot a second hurd";
struct dev_map
@@ -461,8 +461,9 @@ main (int argc, char **argv, char **envp)
char *buf = 0;
pthread_t pthread_id;
char *root_store_name;
- const struct argp_child kids[] = { { &store_argp }, { 0 }};
- struct argp argp = { options, parse_opt, args_doc, doc, kids };
+ const struct argp_child kids[] = { { &store_argp, 0, "Store options:", -2 },
+ { 0 }};
+ struct argp argp = { options, parse_opt, NULL, doc, kids };
struct store_argp_params store_argp_params = { 0 };
argp_parse (&argp, argc, argv, 0, 0, &store_argp_params);
--
Alioth's /usr/local/bin/git-commit-notice on
/srv/git.debian.org/git/pkg-hurd/hurd.git
- [hurd] branch upstream updated (341f43d -> 385d9bf), Samuel Thibault, 2016/11/16
- [hurd] 06/28: libdiskfs: fix removal of socket nodes, Samuel Thibault, 2016/11/16
- [hurd] 01/28: libdiskfs: Fix timestamp update on file close, Samuel Thibault, 2016/11/16
- [hurd] 04/28: wire console display pages, Samuel Thibault, 2016/11/16
- [hurd] 02/28: libdiskfs: Make utimes RPC flush pending timestamp updates, Samuel Thibault, 2016/11/16
- [hurd] 11/28: startup: Dump processes if we cannot find the kernel., Samuel Thibault, 2016/11/16
- [hurd] 03/28: Fix typo, Samuel Thibault, 2016/11/16
- [hurd] 12/28: boot: Use the smallest possible name when inserting rights., Samuel Thibault, 2016/11/16
- [hurd] 15/28: boot: restore terminal state on exit, Samuel Thibault, 2016/11/16
- [hurd] 18/28: boot: Tidy up the argument parser.,
Samuel Thibault <=
- [hurd] 24/28: eth-multiplexer: Avoid local definitions., Samuel Thibault, 2016/11/16
- [hurd] 28/28: libpager: fix returning error on data_unlock, Samuel Thibault, 2016/11/16
- [hurd] 08/28: proc: Fix new task notifications., Samuel Thibault, 2016/11/16
- [hurd] 19/28: Adjust to the fixed new task notifications., Samuel Thibault, 2016/11/16
- [hurd] 22/28: eth-multiplexer: Fix packet delivery., Samuel Thibault, 2016/11/16
- [hurd] 16/28: boot: Allow unprivileged users to boot Subhurds., Samuel Thibault, 2016/11/16
- [hurd] 17/28: boot: Add a default boot script., Samuel Thibault, 2016/11/16
- [hurd] 10/28: Add missing spinlock initializers, Samuel Thibault, 2016/11/16
- [hurd] 23/28: eth-multiplexer: Fix retrieving status of virtual interfaces., Samuel Thibault, 2016/11/16
- [hurd] 26/28: boot: Improve device pass-through., Samuel Thibault, 2016/11/16