My python script requires an argument of type str.
I am using the ArgumentParser
class from argparse
.
I want to pass in a string containing a "$" char in the middle, e.g. "file$102_a.txt"
, but when passed to the script the argument is stored as "file"
cutting off the $102_a.
Is there any way to enable argparse
to do accomodate this?
Running macOS, python v3.7.6
Thank you for your help.