add detection for invalid option values - fixes #518

Sun, 15 Dec 2024 14:56:05 +0100

author
Mike Becker <universe@uap-core.de>
date
Sun, 15 Dec 2024 14:56:05 +0100
changeset 129
b38ea78d842c
parent 128
22f7262475e7
child 130
424a0fb2c64f

add detection for invalid option values - fixes #518

src/main/resources/make/configure.vm file | annotate | diff | comparison | revisions
test/configure2 file | annotate | diff | comparison | revisions
test/make/configure.vm file | annotate | diff | comparison | revisions
--- a/src/main/resources/make/configure.vm	Sun Dec 15 14:50:19 2024 +0100
+++ b/src/main/resources/make/configure.vm	Sun Dec 15 14:56:05 2024 +0100
@@ -646,6 +646,11 @@
             DEPENDENCIES_FAILED="option '${opt.argument}' $DEPENDENCIES_FAILED"
         fi
     #end
+    else
+        echo
+        echo "Invalid option value - usage:"
+        echo "  --${opt.argument}=${opt.valuesString}"
+        abort_configure
     fi
 fi
 #end
--- a/test/configure2	Sun Dec 15 14:50:19 2024 +0100
+++ b/test/configure2	Sun Dec 15 14:56:05 2024 +0100
@@ -754,6 +754,11 @@
             ERROR=1
             DEPENDENCIES_FAILED="option 'toolkit' $DEPENDENCIES_FAILED"
         fi
+    else
+        echo
+        echo "Invalid option value - usage:"
+        echo "  --toolkit=(gtk3|cli|gtk2|wpf)"
+        abort_configure
     fi
 fi
 
--- a/test/make/configure.vm	Sun Dec 15 14:50:19 2024 +0100
+++ b/test/make/configure.vm	Sun Dec 15 14:56:05 2024 +0100
@@ -646,6 +646,11 @@
             DEPENDENCIES_FAILED="option '${opt.argument}' $DEPENDENCIES_FAILED"
         fi
     #end
+    else
+        echo
+        echo "Invalid option value - usage:"
+        echo "  --${opt.argument}=${opt.valuesString}"
+        abort_configure
     fi
 fi
 #end

mercurial