Skip to content

Commit

Permalink
Switched the title argument from positional to optional
Browse files Browse the repository at this point in the history
  • Loading branch information
captainceramic committed May 21, 2015
1 parent 999417b commit d30f4eb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion visualisation/plot_timeseries.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,11 @@ def plot(title,variable,ifile,ofile):
if __name__ == "__main__":
parser = argparse.ArgumentParser(description='Plot timeseries from NetCDF file')
parser.add_argument('variable', help='variable name')
parser.add_argument('title', help='Plot Title')
parser.add_argument('input', help='input file (nc)')
parser.add_argument('output', help='output file (png)')
parser.add_argument('--title', help='Plot Title',
default="Timeseries Plot")

args = parser.parse_args()

plot(args.title, args.variable, args.input, args.output)

0 comments on commit d30f4eb

Please sign in to comment.