I am not sure why this is happening but on my system argparse raises an IOError instead of a SystemExit exception.
Add upload file console script
Raise exception that has the message myria returned. Add test for it.