From 3aa4c28de9f8ae405f4aa0278f5636483b67ec44 Mon Sep 17 00:00:00 2001
From: legoc <legoc@ill.eu>
Date: Wed, 12 May 2021 14:54:12 +0200
Subject: [PATCH] Default value for options added in Server.start(name, args,
 options)

---
 cameo-api-python/src/Application.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cameo-api-python/src/Application.cpp b/cameo-api-python/src/Application.cpp
index 241432d9..4922193d 100644
--- a/cameo-api-python/src/Application.cpp
+++ b/cameo-api-python/src/Application.cpp
@@ -258,7 +258,7 @@ PYBIND11_MODULE(cameopy, m) {
 				py::call_guard<py::gil_scoped_release>())
 
 	    .def("start", py::overload_cast<const std::string&, const std::vector<std::string>&, int>(&cameo::Server::start),
-	    		"name"_a, "args"_a, "options"_a,
+	    		"name"_a, "args"_a, "options"_a = 0,
 	    		py::call_guard<py::gil_scoped_release>())
 	    .def("connectAll", &cameo::Server::connectAll,
 	    		"name"_a, "options"_a = 0,
-- 
GitLab