From: Erwan Velu Date: Wed, 7 Aug 2013 08:52:05 +0000 (+0200) Subject: fio2gnuplot: Adding getoplong support for cmdline X-Git-Tag: fio-2.1.3~23 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=19a9409009c6ef4eff9342c5aa291acaa09dccd2;p=fio.git fio2gnuplot: Adding getoplong support for cmdline Help message was misleading since long options were not supported.... This patch adds all the long options to be supported. --- diff --git a/tools/plot/fio2gnuplot.py b/tools/plot/fio2gnuplot.py index caae9e54..6032e4b5 100755 --- a/tools/plot/fio2gnuplot.py +++ b/tools/plot/fio2gnuplot.py @@ -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)"