tools/normalize.py: both input and output file names are required
authorMark Harris <mark.hsj@gmail.com>
Mon, 1 Sep 2014 22:13:42 +0000 (15:13 -0700)
committerClément Bœsch <u@pkh.me>
Tue, 2 Sep 2014 05:31:34 +0000 (07:31 +0200)
tools/normalize.py

index e015913..7d87c5e 100755 (executable)
@@ -2,7 +2,7 @@
 
 import sys, subprocess
 
-if len(sys.argv) > 1:
+if len(sys.argv) > 2:
     ifile  = sys.argv[1]
     encopt = sys.argv[2:-1]
     ofile  = sys.argv[-1]