def wrap_argument(text):
if not any(x in text for x in ['<STR_LIT:U+0020>', '<STR_LIT:">', "<STR_LIT:'>", '<STR_LIT:\\>']):<EOL><INDENT>return text<EOL><DEDENT>else:<EOL><INDENT>return '<STR_LIT>' % (text.replace('<STR_LIT:\\>', r'<STR_LIT:\\>').replace('<STR_LIT:">', r'<STR_LIT>'), )<EOL><DEDENT>
Wrap command argument in quotes and escape when this contains special characters.