Skip to content

Commit

Permalink
Remove notification about long option prefix change
Browse files Browse the repository at this point in the history
  • Loading branch information
bmalinowsky committed Feb 24, 2024
1 parent fd264be commit 52aef48
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/io/calimero/tools/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -304,9 +304,6 @@ static boolean isOption(final String arg, final String longOpt, final String sho
final boolean lo = arg.startsWith("--") && arg.regionMatches(2, longOpt, 0, arg.length() - 2);
final boolean so = shortOpt != null && arg.startsWith("-")
&& arg.regionMatches(1, shortOpt, 0, arg.length() - 1);
// notify about change of prefix for long options
if (arg.equals("-" + longOpt))
throw new KNXIllegalArgumentException("use --" + longOpt);
return lo || so;
}

Expand Down

0 comments on commit 52aef48

Please sign in to comment.