]> git.phdru.name Git - sqlconvert.git/commitdiff
Print error message
authorOleg Broytman <phd@phdru.name>
Fri, 2 Sep 2016 20:59:08 +0000 (23:59 +0300)
committerOleg Broytman <phd@phdru.name>
Fri, 2 Sep 2016 20:59:08 +0000 (23:59 +0300)
scripts/mysql-to-sql.py

index add0a8cad3e8a0a1d7e63568ee16a01d8cfce1ea..be137a849be27ce42bc4fc96db5c6679c42c2c14 100755 (executable)
@@ -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()