Dear Maintainer,

I think the failure is a direct consequence of [1].
argparse module in Python 3.13 modified argument parsing from the command line.

foo.py script:

 import argparse

 parser = argparse.ArgumentParser()
 parser.add_argument('-v', '--verbosity', default=0, type=int, choices=[0, 1],)
 parser.print_help()


$> python3.12 foo.py
usage: foo.py [-h] [-v {0,1}]

options:
  -h, --help            show this help message and exit
  -v {0,1}, --verbosity {0,1}


$> python3.13 foo.py
usage: foo.py [-h] [-v {0,1}]

options:
  -h, --help            show this help message and exit
  -v, --verbosity {0,1}


Kind Regards

[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1082209

Reply via email to