unbreak got and tog commands by disabling GNU extensions in getopt_long(3)
diff --git a/got/got.c b/got/got.c
index cc916e7..8dafea8 100644
--- a/got/got.c
+++ b/got/got.c
@@ -184,7 +184,7 @@ main(int argc, char *argv[])
setlocale(LC_CTYPE, "");
- while ((ch = getopt_long(argc, argv, "hV", longopts, NULL)) != -1) {
+ while ((ch = getopt_long(argc, argv, "+hV", longopts, NULL)) != -1) {
switch (ch) {
case 'h':
hflag = 1;
diff --git a/tog/tog.c b/tog/tog.c
index 5d0c9e6..62fbbf3 100644
--- a/tog/tog.c
+++ b/tog/tog.c
@@ -5106,7 +5106,7 @@ main(int argc, char *argv[])
setlocale(LC_CTYPE, "");
- while ((ch = getopt_long(argc, argv, "hV", longopts, NULL)) != -1) {
+ while ((ch = getopt_long(argc, argv, "+hV", longopts, NULL)) != -1) {
switch (ch) {
case 'h':
hflag = 1;