add_common_args#
- petpal.cli.cli_reference_tissue_models.add_common_args(parser)#
Adds common arguments to an ArgumentParser object.
This function modifies the passed ArgumentParser object by adding five arguments commonly used for the command line scripts. It uses the add_argument method of the ArgumentParser class. After running this function, the parser will be able to accept and parse these additional arguments from the command line when run.
- Parameters:
parser (argparse.ArgumentParser) – The argument parser object to which the arguments will be added.
- Raises:
argparse.ArgumentError – If a duplicate argument is added.
- Side Effects:
The ArgumentParser object is modified by adding new arguments.