diff --git a/mhcflurry/predict_command.py b/mhcflurry/predict_command.py index aea742d3928254f24a392e3d6156817333de3d33..61f64e4ffd3413f95b7356c7c700fc4a6defa436 100644 --- a/mhcflurry/predict_command.py +++ b/mhcflurry/predict_command.py @@ -35,6 +35,7 @@ import pandas from .downloads import get_default_class1_models_dir from .class1_affinity_predictor import Class1AffinityPredictor +from .version import __version__ parser = argparse.ArgumentParser( @@ -61,7 +62,11 @@ helper_args.add_argument( default=False, help="Prints the list of supported peptide lengths and exits" ) - +helper_args.add_argument( + "--version", + action="version", + version="mhcflurry %s" % __version__, +) input_args = parser.add_argument_group(title="Required input arguments") input_args.add_argument(