We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b85d2e5 commit 77e9da7Copy full SHA for 77e9da7
console/src/main/java/org/jline/console/impl/SystemRegistryImpl.java
@@ -1,5 +1,5 @@
1
/*
2
- * Copyright (c) 2002-2022, the original author(s).
+ * Copyright (c) 2002-2023, the original author(s).
3
*
4
* This software is distributable under the BSD license. See the terms of the
5
* BSD license in the documentation provided with this software.
@@ -402,7 +402,7 @@ public CmdDesc commandDescription(CmdLine line) {
402
break;
403
case METHOD:
404
case SYNTAX:
405
- if (!isCommandOrScript(cmd)) {
+ if (!isCommandOrScript(cmd) && scriptDescription != null) {
406
out = scriptDescription.apply(line);
407
}
408
0 commit comments