def _makeArgumentParser(cls, *args, **kwargs):
     kwargs.pop("doBatch", False)
     parser = ArgumentParser(name=cls._DefaultName, *args, **kwargs)
     parser.add_id_argument("--id",
                            "deepCoadd",
                            help="data ID, e.g. --id tract=12345 patch=1,2",
                            ContainerClass=TractDataIdContainer)
     parser.addReuseOption([
         "detectCoaddSources", "mergeCoaddDetections",
         "measureCoaddSources", "mergeCoaddMeasurements", "forcedPhotCoadd"
     ])
     return parser
    def _makeArgumentParser(cls, **kwargs):
        """!Build argument parser

        Selection references are not cheap (reads Wcs), so are generated
        only if we're not doing a batch submission.
        """
        parser = ArgumentParser(name=cls._DefaultName)
        parser.add_id_argument("--id", "deepCoadd", help="data ID, e.g. --id tract=12345 patch=1,2",
                               ContainerClass=TractDataIdContainer)
        parser.add_id_argument(
            "--selectId", "calexp", help="data ID, e.g. --selectId visit=6789 ccd=0..9")
        parser.addReuseOption(["makeCoaddTempExp", "assembleCoadd", "detectCoaddSources"])
        return parser