Skip to content

Commit

Permalink
Add longoptions support for psternary. (#8354)
Browse files Browse the repository at this point in the history
  • Loading branch information
rbdavis committed Feb 15, 2024
1 parent 2ae6573 commit 93b9338
Showing 1 changed file with 19 additions and 40 deletions.
59 changes: 19 additions & 40 deletions src/longopt/psternary_inc.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,46 +25,25 @@ 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, 'G', "",
"", "",
"", "",
GMT_TP_STANDARD },
{ 0, 'L', "",
"", "",
"", "",
GMT_TP_STANDARD },
{ 0, 'M', "",
"", "",
"", "",
GMT_TP_STANDARD },
{ 0, 'N', "",
"", "",
"", "",
GMT_TP_STANDARD },
{ 0, 'Q', "",
"", "",
"", "",
GMT_TP_STANDARD },
{ 0, 'S', "",
"", "",
"", "",
GMT_TP_STANDARD },
{ 0, 'T', "",
"", "",
"", "",
GMT_TP_STANDARD },
{ 0, 'W', "",
"", "",
"", "",
GMT_TP_STANDARD },
GMT_C_CPT_KW,
{ 0, 'G', "fill",
"p,P", "bit,bitreverse",
"b,f,r", "bg|background,fg|foreground,dpi",
GMT_TP_STANDARD },
{ 0, 'L', "labels|vertex_labels", "", "", "", "", GMT_TP_STANDARD },
/****** psternary pre-scans its options array prior to longoption translation
and will append -Jz1i if it does not see -M, meaning that we cannot
offer any longoption equivalent for -M or this pre-scan will fail
to locate that equivalent and incorrectly append -Jz1i
{ 0, 'M', "dump", "", "", "", "", GMT_TP_STANDARD },
******/
{ 0, 'N', "noclip|no_clip", "", "", "", "", GMT_TP_STANDARD },
{ 0, 'S', "symbol|style",
"-,+,a,A,c,C,d,D,e,g,G,h,H,i,I,j,k,l,n,N,p,r,R,s,S,t,T,w,x,y",
"xdash,plus,star,star_area,circle,circle_area,diamond,diamond_area,ellipse,octagon,octagon_area,hexagon,hexagon_area,invtriangle|inverted_tri,invtriangle_area,rotrectangle|rotated_rec,custom,letter,pentagon,pentagon_area,point,rectangle,roundrectangle|roundrect,square,square_area,triangle,triangle_area,wedge,cross,ydash",
"t,f,j,s,i,a,r,p", "text,font,justify,corners,inner,arc,radial,pen",
GMT_TP_STANDARD },
GMT_W_PEN_KW,
{ 0, '\0', "", "", "", "", "", 0 } /* End of list marked with empty option and strings */
};
#endif /* !PSTERNARY_INC_H */

0 comments on commit 93b9338

Please sign in to comment.