Skip to content

Commit

Permalink
Add longoptions support for gmtselect. (#8004)
Browse files Browse the repository at this point in the history
* Add longoptions support for gmtselect.

* Update gmtselect_inc.h

---------

Co-authored-by: Paul Wessel <[email protected]>
  • Loading branch information
rbdavis and PaulWessel authored Nov 29, 2023
1 parent 1200849 commit 0fd47e7
Showing 1 changed file with 20 additions and 30 deletions.
50 changes: 20 additions & 30 deletions src/longopt/gmtselect_inc.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,36 +24,26 @@ static struct GMT_KEYWORD_DICTIONARY module_kw[] = {
/* separator, short_option, long_option,
short_directives, long_directives,
short_modifiers, long_modifiers */
{ 0, 'A', "",
"", "",
"", "" },
{ 0, 'C', "",
"", "",
"", "" },
{ 0, 'D', "",
"", "",
"", "" },
{ 0, 'E', "",
"", "",
"", "" },
{ 0, 'L', "",
"", "",
"", "" },
{ 0, 'F', "",
"", "",
"", "" },
{ 0, 'G', "",
"", "",
"", "" },
{ 0, 'I', "",
"", "",
"", "" },
{ 0, 'N', "",
"", "",
"", "" },
{ 0, 'Z', "",
"", "",
"", "" },
{ 0, 'A', "min_area|area",
"", "",
"a,l,r,p", "antarctica,lakes,river_lakes,percent" },
{ 0, 'C', "distance|dist2pt",
"", "",
"d", "distance" },
{ 0, 'D', "resolution",
"f,h,i,l,c", "full,high,intermediate,low,crude",
"f", "lower" },
{ 0, 'E', "boundary", "", "", "", "" },
{ 0, 'F', "polygon", "", "", "", "" },
{ 0, 'G', "gridmask", "", "", "", "" },
{ 0, 'I', "invert|reverse", "", "", "", "" },
{ 0, 'L', "dist2line",
"", "",
"d,p", "distance,project" },
{ 0, 'N', "mask|maskvalues", "", "", "", "" },
{ 0, 'Z', "limits|in_range",
"", "",
"a,c,h,i", "any,column,header,invert" },
{ 0, '\0', "", "", "", "", ""} /* End of list marked with empty option and strings */
};
#endif /* !GMTSELECT_INC_H */

0 comments on commit 0fd47e7

Please sign in to comment.