Tried to write errors to stderr consistently in scripts

This commit is contained in:
Christopher Haster
2023-11-04 20:54:00 -05:00
parent d0a6ef0c89
commit 1e4d4cfdcf
19 changed files with 82 additions and 52 deletions

View File

@@ -745,7 +745,8 @@ def main(csv_paths, output, *,
all_y = [k for k, _ in all_y]
if not all_by and not all_y:
print("error: needs --by or -y to figure out fields")
print("error: needs --by or -y to figure out fields",
file=sys.stderr)
sys.exit(-1)
# first collect results from CSV files