| 9188 | } |
| 9189 | |
| 9190 | int gmt_default_option_error (struct GMT_CTRL *GMT, struct GMT_OPTION *opt) { |
| 9191 | int error = gmt_default_error (GMT, opt->option); |
| 9192 | if (error) { |
| 9193 | if (opt->option == GMT_OPT_INFILE) { /* Seen as input file */ |
| 9194 | if (opt->arg[0] && strchr (opt->arg, '+')) |
| 9195 | GMT_Report (GMT->parent, GMT_MSG_ERROR, "%s was seen as an input file but looks like an option with modifiers; did you forget a leading hyphen?\n", opt->arg); |
| 9196 | else |
| 9197 | GMT_Report (GMT->parent, GMT_MSG_ERROR, "%s was seen as an input file which is not expected by this module\n", opt->arg); |
| 9198 | } |
| 9199 | } |
| 9200 | return error; |
| 9201 | } |
| 9202 | |
| 9203 | unsigned int gmt_parse_region_extender (struct GMT_CTRL *GMT, char option, char *arg, unsigned int *mode, double inc[]) { |
| 9204 | /* If given +e|r|R<incs> we must parse and get the mode and 1, 2, or 4 increments */ |