In Python, the argparse module can be used to specify optional positional arguments by setting the nargs parameter to '?'.
Here is an example of how to parse boolean values with argparse in Python: