Commit 836bd654 authored by Matthias Clasen's avatar Matthias Clasen

gtk-builder-tool: Accept --help

Saying 'Failed to open file '--help' is not polite or smart.
Catch this case and show usage information.
parent f793da54
......@@ -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)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment