diff options
Diffstat (limited to 'plot_exps.py')
-rw-r--r-- | plot_exps.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/plot_exps.py b/plot_exps.py index e69de29..06f43b0 100644 --- a/plot_exps.py +++ b/plot_exps.py | |||
@@ -0,0 +1,21 @@ | |||
1 | #!/usr/bin/env python | ||
2 | from __future__ import print_function | ||
3 | |||
4 | from optparse import OptionParser | ||
5 | |||
6 | def parse_args(): | ||
7 | parser = OptionParser("usage: %prog [options] [csv_dir]...") | ||
8 | |||
9 | parser.add_option('-o', '--out-dir', dest='out_dir', | ||
10 | help='directory for plot output', default='plot-data') | ||
11 | parser.add_option('-f', '--force', action='store_true', default=False, | ||
12 | dest='force', help='overwrite existing data') | ||
13 | |||
14 | return parser.parse_args() | ||
15 | |||
16 | def main(): | ||
17 | opts, args = parse_args() | ||
18 | args = args or [os.getcwd()] | ||
19 | |||
20 | if __name__ == '__main__': | ||
21 | main() | ||