From: James Procter Date: Tue, 24 Jan 2023 07:46:53 +0000 (+0000) Subject: JAL-629 don’t complain for Unary args X-Git-Tag: Release_2_11_4_0~496 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=6860179ce5f69173f230c05bd5fe6e85c73886a3;p=jalview.git JAL-629 don’t complain for Unary args --- diff --git a/src/jalview/bin/ArgParser.java b/src/jalview/bin/ArgParser.java index 4d37847..877a7f6 100644 --- a/src/jalview/bin/ArgParser.java +++ b/src/jalview/bin/ArgParser.java @@ -605,7 +605,7 @@ public class ArgParser public boolean getBool(Arg a) { - if (!a.hasOption(Opt.BOOLEAN)) + if (!a.hasOption(Opt.BOOLEAN) && !a.hasOption(Opt.UNARY)) { Console.warn("Getting boolean from non boolean Arg '" + a.getName() + "'.");