src/toil_lib/abstractPipelineWrapper.py
def _create_argument_parser(self):
        """
        Creates and returns an ArgumentParser object prepopulated with 'no clean', 'cores' and
        'restart' arguments.
        """
        parser = argparse.ArgumentParser(description=self._desc,
                                         formatter_class=argparse.RawTextHelpFormatter)
        parser.add_argument('--no-clean', action='store_true',
                            help='If this flag is used, temporary work directory is not cleaned.')
        parser.add_argument('--restart', action='store_true',
                            help='If this flag is used, a previously uncleaned workflow in the same'
                                 ' directory will be resumed')
        parser.add_argument('--cores', type=int, default=None,
                            help='Will set a cap on number of cores to use, default is all '
                                 'available cores.')
        return parser
def _create_argument_parser(self):
        """
        Creates and returns an ArgumentParser object prepopulated with 'no clean', 'cores' and
        'restart' arguments.
        """
        parser = argparse.ArgumentParser(description=self._desc,
                                         formatter_class=argparse.RawTextHelpFormatter)
        parser.add_argument('--no-clean', action='store_true',
                            help='If this flag is used, temporary work directory is not cleaned.')
        parser.add_argument('--restart', action='store_true',
                            help='If this flag is used, a previously uncleaned workflow in the same'
                                 ' directory will be resumed')
        parser.add_argument('--cores', type=int, default=None,
                            help='Will set a cap on number of cores to use, default is all '
                                 'available cores.')
        return parser
Creates and returns an ArgumentParser object prepopulated with 'no clean', 'cores' and
        'restart' arguments.