Package: glib

Macro glib:with-option-group

Lambda List

glib:with-option-group ((group &rest args) &body body)

Syntax

(g:with-option-group (group name description help) body) => result

Arguments

group -- a g:option-group instance to create and initialize
name -- a string for the name of the option group
description -- a string for a description of this option group to be shown in --help output
help -- a string for a description of the --help-name option

Details

The g:with-option-group macro allocates a new g:option-group instance, initializes the option group with the given arguments and executes the body that uses the option group. After execution of the body the allocated memory for the option group is released. See the documentation of the g:option-group-new function for more information about the initialization of the new option group.
 

See also

2025-05-22