Adds short output argument

This commit is contained in:
Simon Walker
2013-11-05 16:19:24 +00:00
parent 6cdf1dd802
commit 87c3683a70
+1 -1
View File
@@ -12,7 +12,7 @@ ap = argparse.ArgumentParser()
ap.add_argument('style', help='Which rc file to use. One of %s' % available)
ap.add_argument('--plot', default='all', help='One of [scatter, hist, line, image], or '
'a comma-separated list of a subset. Default is all.')
ap.add_argument('--output', required=False, help='Render the plot to a file')
ap.add_argument('-o', '--output', required=False, help='Render the plot to a file')
args = ap.parse_args()
matplotlib.rc_file(os.path.join(HERE, 'rc', args.style))