Skip to content

Commit

Permalink
Update gmtmath.c to mention -Q in certain error message (#7688)
Browse files Browse the repository at this point in the history
Proof:
```
$ gmt math 1 800 DIV =
gmtmath [ERROR]: Expression must contain at least one table file or -T [and -N]
$ gmt math -Q 1 800 DIV =
0.00125
```
  • Loading branch information
jidanni authored Jul 27, 2023
1 parent 71f4cc7 commit e0f6cc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gmtmath.c
Original file line number Diff line number Diff line change
Expand Up @@ -6605,7 +6605,7 @@ EXTERN_MSC int GMT_gmtmath (void *V_API, int mode, void *args) {
if (Ctrl->T.T.file) n_columns = Ctrl->N.ncol;

if (!(D_in || T_in || A_in || set_equidistant_t)) { /* Neither a file nor -T given; must read data from stdin */
GMT_Report (API, GMT_MSG_ERROR, "Expression must contain at least one table file or -T [and -N]\n");
GMT_Report (API, GMT_MSG_ERROR, "Expression must contain at least one table file or -T [and -N], or -Q\n");
Return (GMT_RUNTIME_ERROR);
}
if (D_in) /* Obtained file structure from an input file, use this to create new stack entry */
Expand Down

0 comments on commit e0f6cc9

Please sign in to comment.