Add main() to wireviz.py as fallback

This commit is contained in:
Daniel Rojas 2021-10-15 15:03:18 +02:00
parent 3c6b902867
commit 0cb0a4e054

View File

@ -306,5 +306,8 @@ def parse_file(yaml_file: str, file_out: (str, Path) = None) -> None:
parse_text(yaml_str, file_out=file_out, image_paths=[Path(yaml_file).parent])
if __name__ == '__main__':
def main():
print('When running from the command line, please use wv_cli.py instead.')
if __name__ == '__main__':
main()