Gio.ApplicationCommandLine.prototype.get_arguments
function get_arguments(): [return_value: Array(String), argc: Number(gint)] { // Gjs wrapper for g_application_command_line_get_arguments() }
Gets the list of arguments that was passed on the command line.
The strings in the array may contain non-UTF-8 data on UNIX (such as filenames or arguments given in the system locale) but are always in UTF-8 on Windows.
If you wish to use the return value with GLib.OptionContext, you must use GLib.OptionContext.prototype.parse_strv.
The return value is null-terminated and should be freed using GLib.strfreev.
Since 2.28
- return_value
the string array containing the arguments (the argv)
- argc
the length of the arguments array, or null