Skip to content

Commit

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

* Add longoptions support for gmtsplit.

* Update gmtsplit_inc.h

* Update gmtsplit_inc.h

* Add alias to match Julia on -S

---------

Co-authored-by: Paul Wessel <[email protected]>
  • Loading branch information
rbdavis and PaulWessel authored Nov 30, 2023
1 parent e12d6b8 commit 42086f8
Showing 1 changed file with 10 additions and 28 deletions.
38 changes: 10 additions & 28 deletions src/longopt/gmtsplit_inc.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,34 +25,16 @@ static struct GMT_KEYWORD_DICTIONARY module_kw[] = {
short_directives, long_directives,
short_modifiers, long_modifiers,
transproc_mask */
{ 0, 'A', "",
"", "",
"", "",
GMT_TP_STANDARD },
{ 0, 'C', "",
"", "",
"", "",
GMT_TP_STANDARD },
{ 0, 'D', "",
"", "",
"", "",
GMT_TP_STANDARD },
{ 0, 'F', "",
"", "",
"", "",
GMT_TP_STANDARD },
{ 0, 'N', "",
"", "",
"", "",
GMT_TP_STANDARD },
{ 0, 'Q', "",
"", "",
"", "",
GMT_TP_STANDARD },
{ 0, 'S', "",
"", "",
"", "",
GMT_TP_STANDARD },
{ 0, 'A', "azimuth_tolerance|azim_tol", "", "", "", "", GMT_TP_STANDARD },
{ 0, 'C', "course_change", "", "", "", "", GMT_TP_STANDARD },
{ 0, 'D', "min_distance|min_dist", "", "", "", "", GMT_TP_STANDARD },
{ 0, 'F', "filter", "", "", "", "", GMT_TP_STANDARD },
{ 0, 'N', "multifile|multi", "", "", "", "", GMT_TP_STANDARD },
{ 0, 'Q', "outputs|fields",
"x,y,z,d,h", "x,y,z,distance|dist,heading|hdg",
"", "",
GMT_TP_MULTIDIR },
{ 0, 'S', "extended|dist_head", "", "", "", "", GMT_TP_STANDARD },
{ 0, '\0', "", "", "", "", "", 0 } /* End of list marked with empty option and strings */
};
#endif /* !GMTSPLIT_INC_H */

0 comments on commit 42086f8

Please sign in to comment.