-
-
Notifications
You must be signed in to change notification settings - Fork 141
Closed
Description
When using %(prog)s, it doesn't display properly in the tab completion
I'm using Python 3.13, pip 25.0.1, argcomplete==3.6.2 on macOS M2 15.4.1 (24E263), if it helps
Repro:
$ cat myprogram
#!/usr/bin/env python3
# PYTHON_ARGCOMPLETE_OK
import argparse
import argcomplete
parser = argparse.ArgumentParser()
parser.add_argument("-v", help="display %(prog)s version")
argcomplete.autocomplete(parser)
args = parser.parse_args()
$ ./myprogram -h
usage: myprogram [-h] [-v V]
options:
-h, --help show this help message and exit
-v V display myprogram version
$ ./myprogram -h
[./myprogram]
--help -h -- show this help message and exit
-v -- display %(prog)s versionMetadata
Metadata
Assignees
Labels
No labels