From 95e7d15357559c2d84334511cf1d5badcbf453dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Hohwiller?= Date: Tue, 10 Dec 2024 12:16:49 +0100 Subject: [PATCH] #879: allow `-` as value (#880) --- CHANGELOG.adoc | 1 + cli/src/main/java/com/devonfw/tools/ide/property/Property.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.adoc b/CHANGELOG.adoc index 0b2b28fa7..b2a80209f 100644 --- a/CHANGELOG.adoc +++ b/CHANGELOG.adoc @@ -23,6 +23,7 @@ Release with new features and bugfixes: * https://github.com/devonfw/IDEasy/issues/799[#799]: binaries from zip download lack executable flags * https://github.com/devonfw/IDEasy/issues/81[#81]: Implement Toolcommandlet for Kubernetes * https://github.com/devonfw/IDEasy/issues/737[#737]: Adds cd command to ide shell +* https://github.com/devonfw/IDEasy/issues/879[#879]: cannot omit default settings URL in ide create * https://github.com/devonfw/IDEasy/issues/758[#758]: Create status commandlet * https://github.com/devonfw/IDEasy/issues/824[#824]: ide create «settings-url»#«branch» not working * https://github.com/devonfw/IDEasy/issues/754[#754]: Again messages break processable command output diff --git a/cli/src/main/java/com/devonfw/tools/ide/property/Property.java b/cli/src/main/java/com/devonfw/tools/ide/property/Property.java index 4898f4b2d..0bf5ccc3f 100644 --- a/cli/src/main/java/com/devonfw/tools/ide/property/Property.java +++ b/cli/src/main/java/com/devonfw/tools/ide/property/Property.java @@ -358,7 +358,7 @@ protected boolean apply(String normalizedName, CliArguments args, IdeContext con if (option && !argument.isOption()) { return false; } - if (!option && argument.isOption() && args.isSplitShortOpts()) { + if (!option && argument.isOption() && (argument.get().length() > 1) && args.isSplitShortOpts()) { return false; } String argValue = null;