gtk-builder-tool: Accept --help

Saying 'Failed to open file '--help' is not polite or smart.
Catch this case and show usage information.
This commit is contained in:
Matthias Clasen 2016-01-31 11:01:46 -05:00
parent f793da54a9
commit 836bd65408

View File

@ -913,6 +913,9 @@ main (int argc, char *argv[])
if (argc < 3)
usage ();
if (strcmp (argv[2], "--help") == 0)
usage ();
if (strcmp (argv[1], "validate") == 0)
do_validate (argv[2]);
else if (strcmp (argv[1], "simplify") == 0)