From 7fb52c40e13f3e6c7429e9ca28ea703d0ac7da67 Mon Sep 17 00:00:00 2001 From: Roger Davis Date: Sun, 12 Nov 2023 09:57:14 -1000 Subject: [PATCH] Add longoptions support for gmtmath. (#8000) * Add longoptions support for gmtmath. * Update gmtmath_inc.h --------- Co-authored-by: Paul Wessel --- src/longopt/gmtmath_inc.h | 35 ++++++++++++----------------------- 1 file changed, 12 insertions(+), 23 deletions(-) diff --git a/src/longopt/gmtmath_inc.h b/src/longopt/gmtmath_inc.h index 91ec8cbe68b..61a9c67bbde 100644 --- a/src/longopt/gmtmath_inc.h +++ b/src/longopt/gmtmath_inc.h @@ -24,33 +24,22 @@ static struct GMT_KEYWORD_DICTIONARY module_kw[] = { /* separator, short_option, long_option, short_directives, long_directives, short_modifiers, long_modifiers */ - { 0, 'A', "", + { 0, 'A', "init|matrix", "", "", + "e,r,s,w", "evaluate,no_left,sigma,weights" }, + { 0, 'C', "columns", "", "", "", "" }, + { 0, 'E', "eigen", "", "", "", "" }, + { 0, 'I', "invert|reverse", "", "", "", "" }, + { 0, 'N', "ncolumns", "", "", "", "" }, + { 0, 'Q', "quick", + "c,i,p,n", "cm|centimeter,inch,point,none", "", "" }, - { 0, 'C', "", - "", "", - "", "" }, - { 0, 'E', "", - "", "", - "", "" }, - { 0, 'I', "", - "", "", - "", "" }, - { 0, 'L', "", - "", "", + { 0, 'S', "output", + "f,l", "first,last", "", "" }, - { 0, 'N', "", + { 0, 'T', "range|series", "", "", - "", "" }, - { 0, 'Q', "", - "", "", - "", "" }, - { 0, 'S', "", - "", "", - "", "" }, - { 0, 'T', "", - "", "", - "", "" }, + "b,l,i,n", "log2,log10,inverse,number" }, { 0, '\0', "", "", "", "", ""} /* End of list marked with empty option and strings */ }; #endif /* !GMTMATH_INC_H */