get_arguments


Description:

[ CCode ( array_length_pos = 0.1 ) ]
[ Version ( since = "2.28" ) ]
public string[] 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 OptionContext, you must use parse_strv.

The return value is null-terminated and should be freed using strfreev.

Parameters:

this

a ApplicationCommandLine

argc

the length of the arguments array, or null

Returns:

the string array containing the arguments (the argv)




2022 vala-language.org