mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-09 19:06:15 +01:00
g-ir-compiler: Only accept one input file
The positional parameters are declared as G_OPTION_ARG_FILENAME_ARRAY, but only the first one is used. Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
parent
b974fa4e50
commit
e6d2c2c040
@ -197,6 +197,12 @@ main (int argc, char **argv)
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (g_strv_length (input) != 1)
|
||||
{
|
||||
g_printerr ("Please specify only one input file\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
g_debug ("[parsing] start, %d includes",
|
||||
includedirs ? g_strv_length (includedirs) : 0);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user