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

Function usage

src/end.c:36–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34#define THIS_MODULE_OPTIONS "V"
35
36static int usage (struct GMTAPI_CTRL *API, int level) {
37 const char *name = gmt_show_name_and_purpose (API, THIS_MODULE_LIB, THIS_MODULE_CLASSIC_NAME, THIS_MODULE_PURPOSE);
38 if (level == GMT_MODULE_PURPOSE) return (GMT_NOERROR);
39 GMT_Usage (API, 0, "usage: %s [show] [%s]\n", name, GMT_V_OPT);
40
41 if (level == GMT_SYNOPSIS) return (GMT_MODULE_SYNOPSIS);
42
43 GMT_Message (API, GMT_TIME_NONE, " OPTIONAL ARGUMENTS:\n");
44 GMT_Usage (API, 1, "\nshow");
45 GMT_Usage (API, -2, "Display each figure in the default viewer.");
46 GMT_Option (API, "V,;");
47
48 return (GMT_MODULE_USAGE);
49}
50
51static int parse (struct GMT_CTRL *GMT, struct GMT_OPTION *options, bool *show) {
52

Callers 2

GMT_endFunction · 0.70
gmt_report_usageFunction · 0.70

Calls 4

GMT_UsageFunction · 0.85
GMT_MessageFunction · 0.85
GMT_OptionFunction · 0.85

Tested by

no test coverage detected