MCPcopy Create free account
hub / github.com/GenericMappingTools/gmt / gmt_default_option_error

Function gmt_default_option_error

src/gmt_init.c:9190–9201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9188}
9189
9190int 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
9203unsigned 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 */

Callers 15

parseFunction · 0.85
parseFunction · 0.85
parseFunction · 0.85
parseFunction · 0.85
parseFunction · 0.85
parseFunction · 0.85
parseFunction · 0.85
parseFunction · 0.85
parseFunction · 0.85
parseFunction · 0.85
parseFunction · 0.85
parseFunction · 0.85

Calls 2

gmt_default_errorFunction · 0.85
GMT_ReportFunction · 0.85

Tested by 1

parseFunction · 0.68