Bugfix.
* libargp/muinit.c (mu_app_init): Do not parse configs if --config-help was given.
Showing
2 changed files
with
8 additions
and
2 deletions
... | @@ -84,7 +84,6 @@ mu_app_init (struct argp *myargp, const char **capa, | ... | @@ -84,7 +84,6 @@ mu_app_init (struct argp *myargp, const char **capa, |
84 | 84 | ||
85 | mu_libcfg_init (excapa); | 85 | mu_libcfg_init (excapa); |
86 | free (excapa); | 86 | free (excapa); |
87 | mu_parse_config_files (cfg_param, data); | ||
88 | 87 | ||
89 | if (mu_help_config_mode) | 88 | if (mu_help_config_mode) |
90 | { | 89 | { |
... | @@ -115,7 +114,9 @@ mu_app_init (struct argp *myargp, const char **capa, | ... | @@ -115,7 +114,9 @@ mu_app_init (struct argp *myargp, const char **capa, |
115 | mu_stream_destroy (&stream, NULL); | 114 | mu_stream_destroy (&stream, NULL); |
116 | exit (0); | 115 | exit (0); |
117 | } | 116 | } |
118 | 117 | else | |
118 | mu_parse_config_files (cfg_param, data); | ||
119 | |||
119 | if (mu_cfg_parser_verbose) | 120 | if (mu_cfg_parser_verbose) |
120 | cfgflags |= MU_PARSE_CONFIG_VERBOSE; | 121 | cfgflags |= MU_PARSE_CONFIG_VERBOSE; |
121 | if (mu_cfg_parser_verbose > 1) | 122 | if (mu_cfg_parser_verbose > 1) | ... | ... |
-
Please register or sign in to post a comment