[geos-commits] [SCM] GEOS branch main updated. bf3be9ebb55f2912a19acc54adeaae68c7fd01dd
git at osgeo.org
git at osgeo.org
Fri Dec 5 10:30:17 PST 2025
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GEOS".
The branch, main has been updated
via bf3be9ebb55f2912a19acc54adeaae68c7fd01dd (commit)
from d48d7fc02968b6a12f93afb9cd1ae74b3cd24fdf (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit bf3be9ebb55f2912a19acc54adeaae68c7fd01dd
Author: Loïc Bartoletti <lbartoletti at users.noreply.github.com>
Date: Fri Dec 5 19:29:47 2025 +0100
Fix geosop crash when using negative numeric arguments (#1336)
diff --git a/util/geosop/GeosOp.cpp b/util/geosop/GeosOp.cpp
index 05307cf30..97db2c3f8 100644
--- a/util/geosop/GeosOp.cpp
+++ b/util/geosop/GeosOp.cpp
@@ -106,8 +106,11 @@ int main(int argc, char** argv) {
cxxopts::ParseResult result;
try {
result = options.parse(argc, argv);
- } catch ( cxxopts::option_not_exists_exception& ex ) {
+ } catch ( cxxopts::OptionParseException& ex ) {
std::cerr << ex.what() << std::endl;
+ std::cerr << "Hint: To use negative numeric arguments, either:" << std::endl;
+ std::cerr << " - put '--' before the operation name: geosop -a GEOM -- opName -0.4" << std::endl;
+ std::cerr << " - use 'N' prefix for negative numbers: geosop -a GEOM opName N-0.4" << std::endl;
exit(1);
}
-----------------------------------------------------------------------
Summary of changes:
util/geosop/GeosOp.cpp | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
hooks/post-receive
--
GEOS
More information about the geos-commits
mailing list