fio2gnuplot: Adding getoplong support for cmdline
authorErwan Velu <erwan@enovance.com>
Wed, 7 Aug 2013 08:52:05 +0000 (10:52 +0200)
committerErwan Velu <erwan@enovance.com>
Wed, 7 Aug 2013 08:52:05 +0000 (10:52 +0200)
Help message was misleading since long options were not supported....
This patch adds all the long options to be supported.

tools/plot/fio2gnuplot.py

index caae9e5471ba84b7c1c68a4a9412b40262764220..6032e4b55ab40ce8ab0bef36fc865cd3d72c4be0 100755 (executable)
@@ -383,7 +383,7 @@ 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 "Error: One of the option passed to the cmdline was supported"
         print "Please fix your command line or read the help (-h option)"