Package: gio

Function g-application-command-line-options-dict

Lambda List

g-application-command-line-options-dict (cmdline)

Arguments

cmdline -- a g-application-command-line instance

Return Value

A g-variant-dict instance with the options.

Details

Gets the options that were passed to the function g-application-command-line.

If you did not override the virtual function local_command_line then these are the same options that were parsed according to the options entries added to the application with the function g-application-add-main-option-entries and possibly modified from your "handle-local-options" signal handler.

If no options were sent then an empty dictionary is returned so that you do not need to check for nil.
 

See also

2021-8-12