def read_command_line(): """Read arguments from commandline""" parser = ArgumentParser() parser.add_argument('--d', '--dir_path', type=str, default=".", help="Relative path to the case you want to convert") # Parameters for mesh coursening that are not implemented jet. parser.add_argumetn('--mesh', type=str, default="challenge_case%s_zero_pressure.xml.gz", help="Path to the mesh") parser.add_argument('--factor', type=float, default=1, help="If factor is set to anything else than 1" + \ " (default) the median of the h of the existing mesh "divaided by factor will be set as the new edgelength" + \ " this mesh is by default uniform, there is not "implementet support for anything else") args = parser.parse_args() return args.d