Skip to content

Commit aacf1db

Browse files
committed
Clean up version logic
Signed-off-by: Steve Peters <scpeters@openrobotics.org>
1 parent dfc5535 commit aacf1db

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/cmd/model_main.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ void addModelFlags(CLI::App &_app)
150150
"Print the pose of the model (only useful with --model).");
151151
// Don't specify that it needs --model for cli11 >= 2.2.0, < 2.5
152152
// See https://github.com/gazebosim/gz-sim/issues/2918
153-
if (!(CLI11_VERSION_MAJOR >= 2 &&
153+
if (!(CLI11_VERSION_MAJOR == 2 &&
154154
CLI11_VERSION_MINOR >= 2 &&
155155
CLI11_VERSION_MINOR < 5))
156156
{

0 commit comments

Comments
 (0)