print parser error and exit for str from command line