Skip to content

Commit

Permalink
Be more specific on the -N variations that disable -!
Browse files Browse the repository at this point in the history
  • Loading branch information
joa-quim committed Jan 5, 2025
1 parent 2520d94 commit 4e5a2c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/psconvert.c
Original file line number Diff line number Diff line change
Expand Up @@ -817,7 +817,7 @@ static int usage (struct GMTAPI_CTRL *API, int level) {
if (API->GMT->current.setting.run_mode == GMT_CLASSIC)
GMT_Usage (API, 1, "\n-Z Remove input PostScript file(s) after successful conversion.");
#ifndef PS_NO_DUP
GMT_Usage (API, 1, "\n-! Modify the input PS file instead of creating a temp EPS. Some options like -Ng will disable it.");
GMT_Usage (API, 1, "\n-! Modify the input PS file instead of creating a temp EPS. Some options like -N+g or -N+p will disable it.");
#endif
GMT_Option (API, ".");

Expand Down Expand Up @@ -1756,7 +1756,7 @@ EXTERN_MSC int GMT_psconvert (void *V_API, int mode, void *args) {
}
if (Ctrl->N.BB_paint || Ctrl->N.outline) {
Ctrl->O.active = false;
GMT_Report (API, GMT_MSG_WARNING, "The -Ng or -Np option do not support the -!\n");
GMT_Report (API, GMT_MSG_WARNING, "The -N+g or -N+p options do not support the -!\n");
}

if (Ctrl->T.device == GS_DEV_SVG && (gsVersion.major > 9 || (gsVersion.major == 9 && gsVersion.minor >= 16))) {
Expand Down

0 comments on commit 4e5a2c4

Please sign in to comment.