Prints error to stderr instead of stdout

parent a042b00e
#!/usr/bin/env python3
#!/usr/bin/env python
"""
This program writes 'main.lp'.
Pass in a transcript in the specified csv format as a command line argument.
......@@ -17,7 +17,7 @@ def main():
"""
if len(sys.argv) != 2:
print("Usage: python main_writer.py /path/to/transcript")
print("Usage: python main_writer.py /path/to/transcript", file=sys.stderr)
sys.exit(1)
transcript = sys.argv[1]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment