fio2gnuplot: Fixing typo in error message
[fio.git] / tools / plot / fio2gnuplot.py
index 64b41c184897bf387bc3a6133abc04602a971445..b2530e0a0dbdf5ad9ba5f2ede4de95dc4ef03453 100755 (executable)
@@ -383,9 +383,10 @@ def main(argv):
                    sys.exit(3)
 
     try:
-           opts, args = getopt.getopt(argv[1:],"ghbio:d:t:p:G:m:M:")
+           opts, args = getopt.getopt(argv[1:],"ghbio:d:t:p:G:m:M:",['bandwidth', 'iops', 'pattern', 'outputfile', 'outputdir', 'title', 'min_time', 'max_time', 'gnuplot', 'Global', 'help'])
     except getopt.GetoptError:
-        print_help()
+        print "Error: One of the option passed to the cmdline was not supported"
+        print "Please fix your command line or read the help (-h option)"
          sys.exit(2)
 
     for opt, arg in opts: