Gio.ApplicationCommandLine.prototype.get_options_dict

function get_options_dict(): GLib.VariantDict {
    // Gjs wrapper for g_application_command_line_get_options_dict()
}
  

Gets the options there were passed to g_application_command_line().

If you did not override local_command_line() then these are the same options that were parsed according to the #GOptionEntrys added to the application with Gio.Application.prototype.add_main_option_entries and possibly modified from your GApplication::handle-local-options handler.

If no options were sent then an empty dictionary is returned so that you don't need to check for null.

Since 2.40

Returns

a GLib.VariantDict with the options