From 7345edc21d348f3d7d87692b106d1f7a372e0dd6 Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Tue, 2 Nov 2021 22:25:43 +0200 Subject: [PATCH] config: fix --terminate help display There is no parameter --- mu/mu-config.cc | 42 ++++++++++++++++++++++++++---------------- 1 file changed, 26 insertions(+), 16 deletions(-) diff --git a/mu/mu-config.cc b/mu/mu-config.cc index bfa3ecfc..0ca0fd52 100644 --- a/mu/mu-config.cc +++ b/mu/mu-config.cc @@ -371,24 +371,34 @@ crypto_option_entries () return entries; } -static GOptionGroup * -config_options_group_view () +static GOptionGroup* +config_options_group_view() { - GOptionGroup *og; - GOptionEntry entries[] = { - {"summary-len", 0, 0, G_OPTION_ARG_INT, &MU_CONFIG.summary_len, - "use up to lines for the summary, or 0 for none (0)", - ""}, - {"terminate", 0, 0, G_OPTION_ARG_NONE, &MU_CONFIG.terminator, - "terminate messages with ascii-0x07 (\\f, form-feed)", - ""}, - {"format", 'o', 0, G_OPTION_ARG_STRING, &MU_CONFIG.formatstr, - "output format ('plain'(*), 'sexp')", ""}, - {NULL, 0, 0, G_OPTION_ARG_NONE, NULL, NULL, NULL} - }; + GOptionGroup* og; + GOptionEntry entries[] = {{"summary-len", + 0, + 0, + G_OPTION_ARG_INT, + &MU_CONFIG.summary_len, + "use up to lines for the summary, or 0 for none (0)", + ""}, + {"terminate", + 0, + 0, + G_OPTION_ARG_NONE, + &MU_CONFIG.terminator, + "terminate messages with ascii-0x07 (\\f, form-feed)", + NULL}, + {"format", + 'o', + 0, + G_OPTION_ARG_STRING, + &MU_CONFIG.formatstr, + "output format ('plain'(*), 'sexp')", + ""}, + {NULL, 0, 0, G_OPTION_ARG_NONE, NULL, NULL, NULL}}; - og = g_option_group_new("view", "Options for the 'view' command", - "", NULL, NULL); + og = g_option_group_new("view", "Options for the 'view' command", "", NULL, NULL); g_option_group_add_entries(og, entries); g_option_group_add_entries(og, crypto_option_entries());