GLib.OptionArg

The GLib.OptionArg enum values determine which type of extra argument the options expect to find. If an option expects an extra argument, it can be specified in several ways; with a short option: <option>-x arg</option>, with a long option: <option>--name arg</option> or combined in a single argument: <option>--name=arg</option>.

OptionArg.NONE

No extra argument. This is useful for simple flags.

OptionArg.STRING

The option takes a string argument.

OptionArg.INT

The option takes an integer argument.

OptionArg.CALLBACK

The option provides a callback to parse the extra argument.

OptionArg.FILENAME

The option takes a filename as argument.

OptionArg.STRING_ARRAY

The option takes a string argument, multiple uses of the option are collected into an array of strings.

OptionArg.FILENAME_ARRAY

The option takes a filename as argument, multiple uses of the option are collected into an array of strings.

OptionArg.DOUBLE

The option takes a double argument. The argument can be formatted either for the user's locale or for the "C" locale. Since 2.12

OptionArg.INT64

The option takes a 64-bit integer. Like GLib.OptionArg.int but for larger numbers. The number can be in decimal base, or in hexadecimal (when prefixed with <literal>0x</literal>, for example, <literal>0xffffffff</literal>). Since 2.12