From: Oleg Broytman Date: Fri, 2 Sep 2016 20:59:08 +0000 (+0300) Subject: Print error message X-Git-Tag: 0.0.1~9 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=d66fe06e505a658a122fe577d1879b13b77f3b57;p=sqlconvert.git Print error message --- 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()