|
|
cd9052 |
From 3bdf6f25923c3a3bd8404f4a1228053d6a7551b2 Mon Sep 17 00:00:00 2001
|
|
|
cd9052 |
From: Stef Walter <stefw@redhat.com>
|
|
|
cd9052 |
Date: Mon, 6 Feb 2017 12:32:20 +0100
|
|
|
cd9052 |
Subject: [PATCH] tools: Update the usage help text of the realm commands
|
|
|
cd9052 |
|
|
|
cd9052 |
Add better synopsis, sort arguments appropriately, and include
|
|
|
cd9052 |
missing arguments.
|
|
|
cd9052 |
---
|
|
|
cd9052 |
tools/realm-discover.c | 4 ++--
|
|
|
cd9052 |
tools/realm-join.c | 30 +++++++++++++++---------------
|
|
|
cd9052 |
2 files changed, 17 insertions(+), 17 deletions(-)
|
|
|
cd9052 |
|
|
|
cd9052 |
diff --git a/tools/realm-discover.c b/tools/realm-discover.c
|
|
|
cd9052 |
index cec3fd0..8dde4ed 100644
|
|
|
cd9052 |
--- a/tools/realm-discover.c
|
|
|
cd9052 |
+++ b/tools/realm-discover.c
|
|
|
cd9052 |
@@ -186,7 +186,7 @@ realm_discover (RealmClient *client,
|
|
|
cd9052 |
{ NULL, }
|
|
|
cd9052 |
};
|
|
|
cd9052 |
|
|
|
cd9052 |
- context = g_option_context_new ("realm-or-domain");
|
|
|
cd9052 |
+ context = g_option_context_new ("discover REALM-OR-DOMAIN");
|
|
|
cd9052 |
g_option_context_set_translation_domain (context, GETTEXT_PACKAGE);
|
|
|
cd9052 |
g_option_context_add_main_entries (context, option_entries, NULL);
|
|
|
cd9052 |
g_option_context_add_main_entries (context, realm_global_options, NULL);
|
|
|
cd9052 |
@@ -274,7 +274,7 @@ realm_list (RealmClient *client,
|
|
|
cd9052 |
{ NULL, }
|
|
|
cd9052 |
};
|
|
|
cd9052 |
|
|
|
cd9052 |
- context = g_option_context_new ("realm");
|
|
|
cd9052 |
+ context = g_option_context_new ("list");
|
|
|
cd9052 |
g_option_context_set_translation_domain (context, GETTEXT_PACKAGE);
|
|
|
cd9052 |
g_option_context_add_main_entries (context, option_entries, NULL);
|
|
|
cd9052 |
g_option_context_add_main_entries (context, realm_global_options, NULL);
|
|
|
cd9052 |
diff --git a/tools/realm-join.c b/tools/realm-join.c
|
|
|
cd9052 |
index 8e46c20..249f502 100644
|
|
|
cd9052 |
--- a/tools/realm-join.c
|
|
|
cd9052 |
+++ b/tools/realm-join.c
|
|
|
cd9052 |
@@ -286,28 +286,28 @@ realm_join (RealmClient *client,
|
|
|
cd9052 |
gint ret = 0;
|
|
|
cd9052 |
|
|
|
cd9052 |
GOptionEntry option_entries[] = {
|
|
|
cd9052 |
- { "user", 'U', 0, G_OPTION_ARG_STRING, &args.user,
|
|
|
cd9052 |
- N_("User name to use for enrollment"), NULL },
|
|
|
cd9052 |
- { "computer-ou", 0, 0, G_OPTION_ARG_STRING, &args.computer_ou,
|
|
|
cd9052 |
- N_("Computer OU DN to join"), NULL },
|
|
|
cd9052 |
- { "computer-name", 0, 0, G_OPTION_ARG_STRING, &args.computer_name,
|
|
|
cd9052 |
- N_("Use specific computer name instead of hostname"), NULL },
|
|
|
cd9052 |
- { "os-name", 0, 0, G_OPTION_ARG_STRING, &args.os_name,
|
|
|
cd9052 |
- N_("Use specific operation system name"), NULL },
|
|
|
cd9052 |
- { "os-version", 0, 0, G_OPTION_ARG_STRING, &args.os_version,
|
|
|
cd9052 |
- N_("Use specific operation system version"), NULL },
|
|
|
cd9052 |
+ { "automatic-id-mapping", 0, G_OPTION_FLAG_OPTIONAL_ARG, G_OPTION_ARG_CALLBACK,
|
|
|
cd9052 |
+ realm_join_arg_id_mapping, N_("Turn off automatic id mapping"), "no" },
|
|
|
cd9052 |
{ "client-software", 0, 0, G_OPTION_ARG_STRING, &args.client_software,
|
|
|
cd9052 |
N_("Use specific client software"), NULL },
|
|
|
cd9052 |
- { "server-software", 0, 0, G_OPTION_ARG_STRING, &args.server_software,
|
|
|
cd9052 |
- N_("Use specific server software"), NULL },
|
|
|
cd9052 |
+ { "computer-name", 0, 0, G_OPTION_ARG_STRING, &args.computer_name,
|
|
|
cd9052 |
+ N_("Use specific computer name instead of hostname"), NULL },
|
|
|
cd9052 |
+ { "computer-ou", 0, 0, G_OPTION_ARG_STRING, &args.computer_ou,
|
|
|
cd9052 |
+ N_("Computer OU DN to join"), NULL },
|
|
|
cd9052 |
{ "membership-software", 0, 0, G_OPTION_ARG_STRING, &args.membership_software,
|
|
|
cd9052 |
N_("Use specific membership software"), NULL },
|
|
|
cd9052 |
{ "no-password", 0, 0, G_OPTION_ARG_NONE, &args.no_password,
|
|
|
cd9052 |
N_("Join automatically without a password"), NULL },
|
|
|
cd9052 |
{ "one-time-password", 0, 0, G_OPTION_ARG_STRING, &args.one_time_password,
|
|
|
cd9052 |
N_("Join using a preset one time password"), NULL },
|
|
|
cd9052 |
- { "automatic-id-mapping", 0, G_OPTION_FLAG_OPTIONAL_ARG, G_OPTION_ARG_CALLBACK,
|
|
|
cd9052 |
- realm_join_arg_id_mapping, N_("Turn off automatic id mapping"), "no" },
|
|
|
cd9052 |
+ { "os-name", 0, 0, G_OPTION_ARG_STRING, &args.os_name,
|
|
|
cd9052 |
+ N_("Use specific operation system name"), NULL },
|
|
|
cd9052 |
+ { "os-version", 0, 0, G_OPTION_ARG_STRING, &args.os_version,
|
|
|
cd9052 |
+ N_("Use specific operation system version"), NULL },
|
|
|
cd9052 |
+ { "server-software", 0, 0, G_OPTION_ARG_STRING, &args.server_software,
|
|
|
cd9052 |
+ N_("Use specific server software"), NULL },
|
|
|
cd9052 |
+ { "user", 'U', 0, G_OPTION_ARG_STRING, &args.user,
|
|
|
cd9052 |
+ N_("User name to use for enrollment"), NULL },
|
|
|
cd9052 |
{ "user-principal", 0, 0, G_OPTION_ARG_STRING, &args.user_principal,
|
|
|
cd9052 |
N_("Set the user principal for the computer account"), NULL },
|
|
|
cd9052 |
{ NULL, }
|
|
|
cd9052 |
@@ -315,7 +315,7 @@ realm_join (RealmClient *client,
|
|
|
cd9052 |
|
|
|
cd9052 |
memset (&args, 0, sizeof (args));
|
|
|
cd9052 |
|
|
|
cd9052 |
- context = g_option_context_new ("realm");
|
|
|
cd9052 |
+ context = g_option_context_new ("join REALM");
|
|
|
cd9052 |
g_option_context_set_translation_domain (context, GETTEXT_PACKAGE);
|
|
|
cd9052 |
|
|
|
cd9052 |
group = g_option_group_new (NULL, NULL, NULL, &args, realm_join_args_clear);
|
|
|
cd9052 |
--
|
|
|
cd9052 |
2.26.2
|
|
|
cd9052 |
|