Traceback (most recent call last):
File "prog.py", line 5, in <module>
args = parser.parse_args('--outfile /tmp/foo.txt'.split())
File "/usr/lib/python2.7/argparse.py", line 1688, in parse_args
args, argv = self.parse_known_args(args, namespace)
File "/usr/lib/python2.7/argparse.py", line 1713, in parse_known_args
default = self._get_value(action, default)
File "/usr/lib/python2.7/argparse.py", line 2245, in _get_value
raise ArgumentError(action, msg)
argparse.ArgumentError: argument --outfile: can't open '/tmp/out.txt': [Errno 13] Permission denied: '/tmp/out.txt'