parser.add_argument( '--overwrite', dest='overwrite', action='store_true', required=False, help= 'Overwrite existing datasets in the GRASS mapset. If not specified, program will halt if a dataset already exists.' ) args = parser.parse_args() cmdline = RHESSysMetadata.getCommandLine() configFile = None if args.configfile: configFile = args.configfile context = Context(args.projectDir, configFile) paths = RHESSysPaths(args.projectDir) if not args.grassDbase: dbase = 'GRASSData' else: dbase = args.grassDbase grassDbase = os.path.join(context.projectDir, dbase) location = None if args.location: location = args.location mapset = None if args.mapset: mapset = args.mapset # Check for necessary information in metadata