mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-23 10:42:11 +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;
|
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",
|
g_debug ("[parsing] start, %d includes",
|
||||||
includedirs ? g_strv_length (includedirs) : 0);
|
includedirs ? g_strv_length (includedirs) : 0);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user