features/src/main/java/org/apache/karaf/cellar/features/shell/InstallFeatureCommand.java [98:128]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            for (String feature : features) {
                String[] split = feature.split("/");
                String name = split[0];
                String version = null;
                if (split.length == 2) {
                    // use the version provided by the user
                    version = split[1];
                }

                FeatureState found = null;
                String foundKey = null;
                for (String k : clusterFeatures.keySet()) {
                    FeatureState f = clusterFeatures.get(k);
                    foundKey = k;
                    if (version == null) {
                        if (f.getName().equals(name)) {
                            found = f;
                            break;
                        }
                    } else {
                        if (f.getName().equals(name) && f.getVersion().equals(version)) {
                            found = f;
                            break;
                        }
                    }
                }
                if (found == null) {
                    if (version == null)
                        throw new IllegalArgumentException("Feature " + name + " doesn't exist in cluster group " + groupName);
                    else
                        throw new IllegalArgumentException("Feature " + name + "/" + version + " doesn't exist in cluster group " + groupName);
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



features/src/main/java/org/apache/karaf/cellar/features/shell/UninstallFeatureCommand.java [85:114]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            for (String feature : features) {
                String[] split = feature.split("/");
                String name = split[0];
                String version = null;
                if (split.length == 2) {
                    version = split[1];
                }

                FeatureState found = null;
                String foundKey = null;
                for (String k : clusterFeatures.keySet()) {
                    FeatureState f = clusterFeatures.get(k);
                    foundKey = k;
                    if (version == null) {
                        if (f.getName().equals(name)) {
                            found = f;
                            break;
                        }
                    } else {
                        if (f.getName().equals(name) && f.getVersion().equals(version)) {
                            found = f;
                            break;
                        }
                    }
                }
                if (found == null) {
                    if (version == null)
                        throw new IllegalArgumentException("Feature " + name + " doesn't exist in cluster group " + groupName);
                    else
                        throw new IllegalArgumentException("Feature " + name + "/" + version + " doesn't exist in cluster group " + groupName);
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



