OptionEntry

class OptionEntry(pointer: <Error class: unknown class><<Error class: unknown class>>) : Record

A GOptionEntry struct defines a single option. To have an effect, they must be added to a #GOptionGroup with g_option_context_add_main_entries() or g_option_group_add_entries().

Skipped during bindings generation

  • field arg_data: gpointer

Constructors

Link copied to clipboard
constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion : RecordCompanion<OptionEntry, <Error class: unknown class>>

Properties

Link copied to clipboard

The type of the option, as a #GOptionArg

Link copied to clipboard

The placeholder to use for the extra argument parsed by the option in --help output. The @arg_description is translated using the @translate_func of the group, see g_option_group_set_translation_domain().

Link copied to clipboard

the description for the option in --help output. The @description is translated using the @translate_func of the group, see g_option_group_set_translation_domain().

Link copied to clipboard
var flags: Int

Flags from #GOptionFlags

Link copied to clipboard
val glibOptionEntryPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard

The long name of an option can be used to specify it in a commandline as --long_name. Every option must have a long name. To resolve conflicts if multiple option groups contain the same long name, it is also possible to specify the option as --groupname-long_name.

Link copied to clipboard

If an option has a short name, it can be specified -short_name in a commandline. @short_name must be a printable ASCII character different from '-', or zero if the option has no short name.