Skip to content

Commit db287c5

Browse files
committed
Change the output of ops.help() to namespaces only
This commit restricts the output of the ops.help() call to just the namespaces that are available. This changes the output call from this: ``` > features.haralick > features > features.tamura > features.zernike ``` to just: ``` > features ```
1 parent db162e4 commit db287c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scijava-ops-engine/src/main/java/org/scijava/ops/engine/impl/DefaultOpDescriptionGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ private static Optional<String> getNonOpString(OpEnvironment env,
117117
if (Strings.isNullOrEmpty(name)) {
118118
// Return all namespaces
119119
nsStream = publicOpStream(env);
120-
nsStream = nsStream.map(s -> s.substring(0, s.lastIndexOf('.')))
120+
nsStream = nsStream.map(s -> s.substring(0, s.indexOf('.')))
121121
.distinct();
122122
prefix = "Namespaces:\n\t> ";
123123
}

0 commit comments

Comments
 (0)