From f488e153357844eca6f028efa0d88e5ba337f330 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 24 Feb 2021 22:02:12 +0100 Subject: Ignore -- MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- LICENSE | 2 +- xkbdbind.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/LICENSE b/LICENSE index b339294..05839b1 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ ISC License -© 2018 Mattias Andrée +© 2018, 2021 Mattias Andrée Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above diff --git a/xkbdbind.c b/xkbdbind.c index f012df3..90a472a 100644 --- a/xkbdbind.c +++ b/xkbdbind.c @@ -123,6 +123,8 @@ main(int argc, char *argv[]) size_t i; argv0 = argv[0]; + if (argc > 1 && !strcmp(argv[1], "--")) + argc--; if (argc > 1) { fprintf(stderr, "usage: %s\n", argv0); return 1; -- cgit v1.2.3-70-g09d2