! . \param GMT ... \param option ... \param string ... */
| 8738 | \param string ... |
| 8739 | */ |
| 8740 | void gmt_fill_syntax (struct GMT_CTRL *GMT, char option, char *longoption, char *string) { |
| 8741 | struct GMTAPI_CTRL *API = GMT->parent; |
| 8742 | if (string[0] == ' ') { |
| 8743 | if (longoption) |
| 8744 | GMT_Report (GMT->parent, GMT_MSG_ERROR, "Option -%s parsing failure. Correct syntax:\n", longoption); |
| 8745 | else |
| 8746 | GMT_Report (GMT->parent, GMT_MSG_ERROR, "Option -%c parsing failure. Correct syntax:\n", option); |
| 8747 | } |
| 8748 | if (longoption) |
| 8749 | GMT_Usage (API, 1, "\n-%s<fill>", longoption); |
| 8750 | else |
| 8751 | GMT_Usage (API, 1, "\n-%c<fill>", option); |
| 8752 | GMT_Usage (API, -2, "%s Specify <fill> as one of:", string); |
| 8753 | GMT_Usage (API, 3, "%s <gray> or <red>/<green>/<blue>, all in the range 0-255.", GMT_LINE_BULLET); |
| 8754 | GMT_Usage (API, 3, "%s #rrggbb, all in the range 0-255 using hexadecimal numbers.", GMT_LINE_BULLET); |
| 8755 | GMT_Usage (API, 3, "%s <cyan>/<magenta>/<yellow>/<black> in range 0-100%%.", GMT_LINE_BULLET); |
| 8756 | GMT_Usage (API, 3, "%s <hue>-<saturation>-<value> in ranges 0-360, 0-1, 0-1.", GMT_LINE_BULLET); |
| 8757 | GMT_Usage (API, 3, "%s A valid color name.", GMT_LINE_BULLET); |
| 8758 | GMT_Usage (API, 3, "%s P|p<pattern>[+b<color>][+f<color>][+r<dpi>]. " |
| 8759 | "Give <pattern> number from 1-90 or a filename. Optional modifiers:", GMT_LINE_BULLET); |
| 8760 | GMT_Usage (API, 4, "+r Specify the <dpi> of the pattern [%g]. ", PSL_DOTS_PER_INCH_PATTERN); |
| 8761 | GMT_Usage (API, 4, "+b Change the background <color> (no <color> sets transparency)."); |
| 8762 | GMT_Usage (API, 4, "+f Change the foreground <color> (no <color> sets transparency)."); |
| 8763 | GMT_Usage (API, -2, "For PDF fill transparency, append @<transparency> in the range 0-100 [0 = opaque]."); |
| 8764 | } |
| 8765 | |
| 8766 | /*! . |
| 8767 | \param GMT ... |
no test coverage detected