From d66fe06e505a658a122fe577d1879b13b77f3b57 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Fri, 2 Sep 2016 23:59:08 +0300 Subject: [PATCH] Print error message --- scripts/mysql-to-sql.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/mysql-to-sql.py b/scripts/mysql-to-sql.py index add0a8c..be137a8 100755 --- a/scripts/mysql-to-sql.py +++ b/scripts/mysql-to-sql.py @@ -1,4 +1,5 @@ #! /usr/bin/env python +from __future__ import print_function import argparse import sys @@ -32,6 +33,7 @@ if __name__ == '__main__': else: infile = sys.stdin if infile.isatty(): + print("Error: cannot input from console", file=sys.stderr) parser.print_help() sys.exit() -- 2.39.5