Skip to content

Commit

Permalink
Do not warn that longoptions where reformatted. See #8657 (#8658)
Browse files Browse the repository at this point in the history
But keep in mind that there are warnings in the code above this.
  • Loading branch information
joa-quim authored Jan 3, 2025
1 parent 331eee1 commit 325e3cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gmt_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
}
}
Expand Down

0 comments on commit 325e3cc

Please sign in to comment.