Fix generated usage

This commit is contained in:
Him188 2020-09-09 22:54:47 +08:00
parent a6bd7b7d63
commit 0c94ea96a8

View File

@ -234,7 +234,7 @@ internal fun Array<AbstractReflectionCommand.SubCommandDescriptor>.createUsage(b
internal fun AbstractReflectionCommand.SubCommandDescriptor.createUsage(baseCommand: AbstractReflectionCommand): String = internal fun AbstractReflectionCommand.SubCommandDescriptor.createUsage(baseCommand: AbstractReflectionCommand): String =
buildString { buildString {
if (!baseCommand.prefixOptional) { if (baseCommand.prefixOptional) {
append("(") append("(")
append(CommandManager.commandPrefix) append(CommandManager.commandPrefix)
append(")") append(")")