Commit 7e51cbda authored by Florian Ziemen's avatar Florian Ziemen
Browse files

helper stuff for paraview python scripts

parent 2909ae44
#!/usr/bin/env python
from argparse import ArgumentParser
import glob
options = {}
def parse_args():
'''Parses the command line arguments'''
global options
parser = ArgumentParser()
parser.description = "Plot icon files"
parser.add_argument("--oce", "-O")
parser.add_argument("--atm", "-A")
parser.add_argument("--ice", "-I")
op = parser.parse_args()
options = vars(op)
if options.get("oce", False):
if options.get("atm", False):
if options.get("ice", False):
return options
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment