Currently I have the following code:
bubble.py
import argparse
parser = argparse.ArgumentParser(description="Create pixel art bubble speech image")
parser.add_argument('text', type=str, nargs='+', help="Text inside the bubble speech")
args = parser.parse_args()
Running the following commands work fine on windows:
bubble.py hello world
bubble.py hello?
bubble.py hello :)
But causes varying errors on macOS:
zsh: no matches found hello?
zsh: parse error near `)'
As disclaimer, I have little to none knowledge of macOS terminal. How to avoid the error and have the texts including the punctuations captured by argparse nargs?