Skip to content

Commit

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

* Update psconvert_inc.h

- Changed -A from "adjust|crop" to more appropriate "autocrop|crop"
- Added "ghost_*" to align with "ghost_path"
- Replaced "bb_style" with "show_bbox"
- Added "ps_layer" as alternative to "pslayer"

* Update psconvert_inc.h: restored Julia alias

* Update psconvert_inc.h Restored Python -N bb_style

* Update psconvert_inc.h

---------

Co-authored-by: Remko Scharroo <[email protected]>
Co-authored-by: Joaquim <[email protected]>
  • Loading branch information
3 people committed Mar 2, 2024
1 parent f4337fb commit 22dd3cb
Showing 1 changed file with 26 additions and 55 deletions.
81 changes: 26 additions & 55 deletions src/longopt/psconvert_inc.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,74 +25,45 @@ 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, 'E', "",
"", "",
"", "",
GMT_TP_STANDARD },
{ 0, 'F', "",
"", "",
"", "",
GMT_TP_STANDARD },
{ 0, 'G', "",
"", "",
"", "",
GMT_TP_STANDARD },
{ 0, 'H', "",
"", "",
{ 0, 'A', "adjust|autocrop|crop",
"", "",
"r,u", "round,no_timestamp",
GMT_TP_STANDARD },
{ 0, 'I', "",
"", "",
{ 0, 'C', "gs_option|ghost_option", "", "", "", "", GMT_TP_STANDARD },
{ 0, 'D', "outdir|out_dir", "", "", "", "", GMT_TP_STANDARD },
{ 0, 'E', "dpi", "", "", "", "", GMT_TP_STANDARD },
{ 0, 'F', "outfile|out_name|prefix", "", "", "", "", GMT_TP_STANDARD },
{ 0, 'G', "gs_path|ghost_path", "", "", "", "", GMT_TP_STANDARD },
{ 0, 'H', "scale", "", "", "", "", GMT_TP_STANDARD },
{ 0, 'I', "resize",
"", "",
"m,s,S", "margins,size,scale",
GMT_TP_STANDARD },
{ 0, 'L', "",
"", "",
"", "",
GMT_TP_STANDARD },
{ 0, 'M', "",
"", "",
{ 0, 'L', "listfile|list_file", "", "", "", "", GMT_TP_STANDARD },
{ 0, 'M', "pslayer|ps_layer",
"b,f", "bg|background,fg|foreground",
"", "",
GMT_TP_STANDARD },
{ 0, 'N', "",
"", "",
{ 0, 'N', "bgcolor",
"", "",
"f,g,k,p", "fade,bg|background,fadecolor,pen",
GMT_TP_STANDARD },
{ 0, 'P', "",
"", "",
{ 0, 'Q', "anti_aliasing",
"g,p,t", "graphics,geopdf,text",
"", "",
GMT_TP_STANDARD },
{ 0, 'Q', "",
"", "",
"", "",
{ 0, 'S', "gs_command|ghost_command", "", "", "", "", GMT_TP_STANDARD },
{ 0, 'T', "format|fmt",
"b,e,E,f,F,j,g,G,m,t",
"bmp,eps,pageszeps,pdf,multipdf,jpeg,png,transpng,ppm,tiff",
"m,q", "mono|monochrome,quality",
GMT_TP_STANDARD },
{ 0, 'S', "",
"", "",
"", "",
GMT_TP_STANDARD },
{ 0, 'T', "",
"", "",
"", "",
GMT_TP_STANDARD },
{ 0, 'W', "",
"", "",
"", "",
GMT_TP_STANDARD },
{ 0, 'Z', "",
"", "",
{ 0, 'W', "world_file",
"", "",
"a,c,f,g,k,l,n,o,t,u",
"altitude,nocrop|no_crop,fade,gdal,kml,lod,layer,folder,doc,url",
GMT_TP_STANDARD },
{ 0, 'Z', "remove_infile|del_input_ps", "", "", "", "", GMT_TP_STANDARD },
{ 0, '\0', "", "", "", "", "", 0 } /* End of list marked with empty option and strings */
};
#endif /* !PSCONVERT_INC_H */

0 comments on commit 22dd3cb

Please sign in to comment.