From 325e3ccda59eba071d61c9677c6d78266feb3dee Mon Sep 17 00:00:00 2001 From: Joaquim Date: Fri, 3 Jan 2025 01:57:43 +0000 Subject: [PATCH] Do not warn that longoptions where reformatted. See #8657 (#8658) But keep in mind that there are warnings in the code above this. --- src/gmt_init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gmt_init.c b/src/gmt_init.c index 2e6b99530e6..61d765258c6 100644 --- a/src/gmt_init.c +++ b/src/gmt_init.c @@ -1168,9 +1168,9 @@ GMT_LOCAL void gmtinit_translate_to_short_options(struct GMTAPI_CTRL *API, struc and also note that at this point we will always be at GMT_MSG_WARNING or whatever default verbosity level the program is initialized with -- fix this later (or not)! */ #endif /* 0 */ - if (modified) { + if (modified && gmt_M_is_verbose (API->GMT, GMT_MSG_INFORMATION)) { /* Echo the converted options */ char *cmd = GMT_Create_Cmd (API, *options); - GMT_Report (API, GMT_MSG_WARNING, "Reformatted options: %s\n", cmd); + GMT_Report (API, GMT_MSG_INFORMATION, "Reformatted options: %s\n", cmd); GMT_Destroy_Cmd (API, &cmd); /* Free string */ } }