Sun, 15 Dec 2024 14:56:05 +0100
add detection for invalid option values - fixes #518
--- 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