Package: gio
Function g-application-add-main-option
Lambda Listg-application-add-main-option (application long short flags arg desc arg-desc) ArgumentsDetails
Adds an option to be handled by the application. Calling this function is the equivalent of calling the g-application-add-main-option-entries function with a single option entry that has its the arg-data field set to nil. The parsed arguments will be packed into a g-variant-dict parameter which is passed to the "handle-local-options" signal handler. If the :handles-command-line flag is set, then it will also be sent to the primary instance. See the g-application-add-main-option-entries function for more details. See the g-option-group-add-entries function for more documentation of the arguments. | See also |
2021-9-9