remove all references to optparse (deprecated since Python 3.2)

This commit is contained in:
Hans-Christoph Steiner 2024-05-02 14:08:28 +02:00
parent 717df09be0
commit 1e5699e90c
24 changed files with 115 additions and 93 deletions

View file

@ -182,7 +182,7 @@ def main():
"can not be specified at the same time."))
sys.exit(1)
# Trick optparse into displaying the right usage when --help is used.
# Trick argparse into displaying the right usage when --help is used.
sys.argv[0] += ' ' + command
del sys.argv[1]