24
24
(adopt :make-option ' string-type
25
25
:result-key ' string-type
26
26
:parameter " STRING-TYPE"
27
- :help (format nil " ECL datatype to use for strings; must be one of ~
27
+ :help (format nil " ECL datatype to use for JSON strings; must be one of ~
28
28
UTF8|STRING|VARSTRING; defaults to UTF8" )
29
29
:long " string-type"
30
30
:short #\s
31
31
:initial-value " UTF8"
32
32
:reduce #' adopt:last))
33
33
34
+ (defparameter *option-group-output*
35
+ (adopt :make-group ' output-options
36
+ :title " Output Options"
37
+ :help " These options affect how the ECL RECORD structures are created."
38
+ :options (list *option-ecl-string-type* )))
39
+
34
40
(adopt :define-string *help-text*
35
41
" json2ecl examines JSON data and deduces the ECL RECORD definitions necessary to parse it. ~
36
- The resulting ECL definitions are returned via standard out, suitable for piping or copying ~
37
- and pasting into your favorite IDE.~@
42
+ The resulting ECL definitions are returned via standard out, suitable for piping or pasting ~
43
+ into your favorite IDE.~@
38
44
~@
39
45
JSON data can be supplied as one or more files or via standard input.~@
40
46
~@
41
47
Multiple files, if provided, are parsed as if they should have the same record structure. ~
42
48
This is useful for cases where you suspect that not all JSON key/value objects are fully ~
43
- defined in one file, but other files may contain the missing data.~@
44
- ~@
45
- The `-h` and `-v` versions should be obvious.~@
46
- ~@
47
- The -s option allows you to override the ECL datatype used for string values. ~
48
- Because JSON data is normally in UTF-8 format, UTF8 is the default ECL data type for ~
49
- those values. However, if you know that the data is in plain ASCII then you can override ~
50
- the type with this option. The acceptable values are:~@
51
- ~@
52
- - UTF8: A UTF-8 string; this is the default.~@
53
- - STRING: An ASCII string.~@
54
- - VARSTRING: A C-style null-terminated string. Don't use this unless you know why you need it." )
49
+ defined in one file, and other files may contain the missing data." )
55
50
56
51
(defparameter *ui*
57
52
(adopt :make-interface :name " json2ecl"
@@ -62,7 +57,7 @@ the type with this option. The acceptable values are:~@
62
57
:contents (list
63
58
*option-version*
64
59
*option-help*
65
- *option-ecl-string-type * )))
60
+ *option-group-output * )))
66
61
67
62
; ;;
68
63
0 commit comments