core: Fix single static argument not formatting properly (#294)
This commit is contained in:
parent
0cf8030f72
commit
b227032032
1 changed files with 3 additions and 0 deletions
|
|
@ -104,6 +104,9 @@ public class StandardCommandSyntaxFormatter<C> implements CommandSyntaxFormatter
|
|||
} else if (argument instanceof FlagArgument) {
|
||||
formattingInstance.appendBlankSpace();
|
||||
formattingInstance.appendFlag((FlagArgument<?>) argument);
|
||||
} else if (argument instanceof StaticArgument) {
|
||||
formattingInstance.appendBlankSpace();
|
||||
formattingInstance.appendLiteral((StaticArgument<?>) argument);
|
||||
} else {
|
||||
formattingInstance.appendBlankSpace();
|
||||
if (argument.isRequired()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue