2 * Copyright (C) 2016 Andre Noll <maan@tuebingen.mpg.de>
4 * Licensed under the GPL v3, see http://www.gnu.org/licenses/gpl-3.0.html
20 bool multiple
, required
, ignored
;
25 char **value_literals
;
37 struct lsg_option
*options
;
48 char *caption
; /* additional section heading (.SH), default: empty */
49 char *title
; /* defaults to suite name */
50 char *mansect
; /* default: 1 */
51 char *date
; /* default: current date */
52 char *version_string
; /* default: empty */
53 char *manual_title
; /* default: User commands */
54 char *aux_info_prefix
;
55 char *aux_info_default
;
56 char *introduction
, *conclusion
;
57 /* supercommand is #0, subcommands start at index 1 */
58 struct lsg_command
*commands
;
60 struct lsg_section
*sections
;
64 extern struct lsg_suite suite
;
67 #define OPT_RESULT(_name, _lpr) ((_lpr)->opt_result + LSG_LOPSUBGEN_LOPSUBGEN_OPT_ ## _name)
68 #define OPT_GIVEN(_name, _lpr) (OPT_RESULT(_name, (_lpr))->given)
69 #define OPT_STRING_VAL(_name, _lpr) (OPT_RESULT(_name, (_lpr))->value[0].string_val)