mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-11 11:20:12 +00:00
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:
parent
f793da54a9
commit
836bd65408
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user