Variable

GLib-2.0GLibOPTION_REMAININGConstSince 2.6

OPTION_REMAINING: string

If a long option in the main group has this name, it is not treated as a regular option. Instead it collects all non-option arguments which would otherwise be left in argv. The option must be of type GLib.OptionArg.CALLBACK, GLib.OptionArg.STRING_ARRAY or GLib.OptionArg.FILENAME_ARRAY.

Using G_OPTION_REMAINING instead of simply scanning argv for leftover arguments has the advantage that GOption takes care of necessary encoding conversions for strings or filenames.

2.6