diff options
Diffstat (limited to 'tools/interactive-wayland.c')
-rw-r--r-- | tools/interactive-wayland.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/interactive-wayland.c b/tools/interactive-wayland.c index 8cc41de..3ac7ad7 100644 --- a/tools/interactive-wayland.c +++ b/tools/interactive-wayland.c @@ -662,6 +662,14 @@ main(int argc, char *argv[]) struct interactive_dpy inter; struct wl_registry *registry; + if (argc != 1) { + ret = strcmp(argv[1], "--help"); + fprintf(ret ? stderr : stdout, "Usage: %s [--help]\n", argv[0]); + if (ret) + fprintf(stderr, "unrecognized option: %s\n", argv[1]); + return ret ? EXIT_INVALID_USAGE : EXIT_SUCCESS; + } + setlocale(LC_ALL, ""); memset(&inter, 0, sizeof(inter)); |