""" A module that manages the command line options to the form compiler executable """
frompytoolsimportmemoize
@memoize
defget_form_compiler_arguments():
fromargparseimportArgumentParser
parser=ArgumentParser(description="Compile UFL files to PDELab C++ code",epilog="Please report bugs to dominic.kempf@iwr.uni-heidelberg.de")
parser.add_argument("uflfile",type=str,nargs=1,help="the UFL file to compile")
# parser.add_argument("--numerical-jacobian", action="store_true", help="use numerical jacobians (only makes sense, if uflpdelab for some reason fails to generate analytic jacobians)")
# parser.add_argument("--operator-file", type=str, help="The filename for the generated local operator header")
# parser.add_argument("--driver-file", type=str, help="The filename for the generated driver header")
# parser.add_argument("--param-class-file", type=str, help="The filename for the generated parameter class header")
# parser.add_argument("--export-trafo-graphs", action="store_true", help="export expression graphs after the application of each single transformation")
# parser.add_argument("--parameter-tree", action="store_true", help="have the generated local operate take a Dune::ParameterTree as constructor argument")
# parser.add_argument("--inifile", type=str, help="The inifile that this program's driver should be hardcoded to. Omit to use a commandline argument ini file")