Fixed obvious bug in --help-commands

This commit is contained in:
Jamie Hardt
2024-10-16 14:39:41 -07:00
parent 7015e80cf9
commit e2b93f5183

View File

@@ -123,7 +123,7 @@ def main():
if options.help_commands: if options.help_commands:
print("Command Help\n------------") print("Command Help\n------------")
commands = [command for command in dir(BatchfileParser) if commands = [command for command in dir(BatchfileParser) if
not command.startswith('_') or command != "eval"] not command.startswith('_') and command != "eval"]
print(f"{inspect.cleandoc(BatchfileParser.__doc__ or '')}\n\n") print(f"{inspect.cleandoc(BatchfileParser.__doc__ or '')}\n\n")
for command in commands: for command in commands:
meth = getattr(BatchfileParser, command) meth = getattr(BatchfileParser, command)