Apache CLI option value with whitespace Apache CLI option value with whitespace apache apache

Apache CLI option value with whitespace


I think passing the string with extra single quotes should work:

MyApp -f "'search for this string'"


MyApp -f 'search for this string'

Enclosing the string in a single quote (') worked for me on UNIX.This comment on the Apache CLI JIRA site might help.


On Windows the argument must be surrounded with double quotes. On Unix you can use simple quotes, double quotes, or escape the space with a backslash.