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 <literal>argv</literal>. 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 <literal>argv</literal> for leftover arguments has the advantage that GOption takes care of necessary encoding conversions for strings or filenames.

Since 2.6