diff options
author | Miloslav Trmač <mitr@redhat.com> | 2013-04-20 01:13:36 +0200 |
---|---|---|
committer | Miloslav Trmač <mitr@redhat.com> | 2013-05-13 17:41:37 +0200 |
commit | b348673c27636a60da4459d0ea392b115db0681a (patch) | |
tree | 14878d8dacc0353392cb5de8e912c34d9f9fc6cb /src/programs | |
parent | 30b08c656e1c13599ca365f0c75b846881bad4ab (diff) | |
download | polkit-b348673c27636a60da4459d0ea392b115db0681a.tar.gz |
Add bug reporting address and home page to --help output
... as required by GNU coding standards.
https://bugs.freedesktop.org/show_bug.cgi?id=29936
Diffstat (limited to 'src/programs')
-rw-r--r-- | src/programs/pkaction.c | 6 | ||||
-rw-r--r-- | src/programs/pkcheck.c | 5 | ||||
-rw-r--r-- | src/programs/pkexec.c | 6 | ||||
-rw-r--r-- | src/programs/pkttyagent.c | 6 |
4 files changed, 21 insertions, 2 deletions
diff --git a/src/programs/pkaction.c b/src/programs/pkaction.c index f2969cc..3778b33 100644 --- a/src/programs/pkaction.c +++ b/src/programs/pkaction.c @@ -90,6 +90,7 @@ main (int argc, char *argv[]) { guint ret; gchar *opt_action_id; + gchar *s; gboolean opt_show_version; gboolean opt_verbose; GOptionEntry options[] = @@ -127,6 +128,11 @@ main (int argc, char *argv[]) error = NULL; context = g_option_context_new (N_("[--action-id ACTION]")); + s = g_strdup_printf (_("Report bugs to: %s\n" + "%s home page: <%s>"), PACKAGE_BUGREPORT, + PACKAGE_NAME, PACKAGE_URL); + g_option_context_set_description (context, s); + g_free (s); g_option_context_add_main_entries (context, options, GETTEXT_PACKAGE); if (!g_option_context_parse (context, &argc, &argv, &error)) { diff --git a/src/programs/pkcheck.c b/src/programs/pkcheck.c index 20713cc..ebb375e 100644 --- a/src/programs/pkcheck.c +++ b/src/programs/pkcheck.c @@ -48,7 +48,10 @@ help (void) " --revoke-temp Revoke all temporary authorizations for current session\n" " -s, --system-bus-name=BUS_NAME Check authorization of owner of BUS_NAME\n" " --version Show version\n" - "\n")); + "\n" + "Report bugs to: %s\n" + "%s home page: <%s>\n"), PACKAGE_BUGREPORT, PACKAGE_NAME, + PACKAGE_URL); } static gchar * diff --git a/src/programs/pkexec.c b/src/programs/pkexec.c index 529898a..005e1fe 100644 --- a/src/programs/pkexec.c +++ b/src/programs/pkexec.c @@ -77,7 +77,11 @@ usage (int argc, char *argv[]) " --disable-internal-agent |\n" " [--user username] PROGRAM [ARGUMENTS...]\n" "\n" - "See the pkexec manual page for more details.\n"); + "See the pkexec manual page for more details.\n" + "\n" + "Report bugs to: %s\n" + "%s home page: <%s>\n", PACKAGE_BUGREPORT, PACKAGE_NAME, + PACKAGE_URL); } /* ---------------------------------------------------------------------------------------------------- */ diff --git a/src/programs/pkttyagent.c b/src/programs/pkttyagent.c index 7bd8031..ba09973 100644 --- a/src/programs/pkttyagent.c +++ b/src/programs/pkttyagent.c @@ -63,6 +63,7 @@ main (int argc, char *argv[]) { NULL, 0, 0, 0, NULL, NULL, NULL } }; GOptionContext *context; + gchar *s; PolkitAuthority *authority = NULL; PolkitSubject *subject = NULL; gpointer local_agent_handle = NULL; @@ -77,6 +78,11 @@ main (int argc, char *argv[]) error = NULL; context = g_option_context_new (""); + s = g_strdup_printf (_("Report bugs to: %s\n" + "%s home page: <%s>"), PACKAGE_BUGREPORT, + PACKAGE_NAME, PACKAGE_URL); + g_option_context_set_description (context, s); + g_free (s); g_option_context_add_main_entries (context, options, GETTEXT_PACKAGE); if (!g_option_context_parse (context, &argc, &argv, &error)) { |