Merge branch 'wip/smcv/gi-compiler-only-one' into 'main'

g-ir-compiler: Only accept one input file

See merge request GNOME/glib!3927
This commit is contained in:
Philip Withnall 2024-02-14 23:52:13 +00:00
commit 803508f9a9

View File

@ -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);