Add setPermission method to SubCommand.