fix an NPE and other changes
This commit is contained in:
@@ -29,7 +29,7 @@ public class CmdAutoHelp extends FCommand {
|
||||
|
||||
for (FCommand scmd : pcmd.subCommands) {
|
||||
if (scmd.visibility == CommandVisibility.VISIBLE) {
|
||||
lines.add(scmd.getUseageTemplate(context, true));
|
||||
lines.add(scmd.getUsageTemplate(context, true));
|
||||
}
|
||||
// TODO deal with other visibilities
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user