Skip to content

Commit

Permalink
Add main() to wireviz.py as fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
17o2 authored and laurierloi committed Jan 19, 2023
1 parent 7638425 commit 63be33e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/wireviz/wireviz.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,5 +309,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()

0 comments on commit 63be33e

Please sign in to comment.