There is such a startup line:
java -jar smart-file-handler-cli -p -s xml \ -o /path/result.log 'text for search' ./ Question about application arguments:
-p -s xml -o /path/result.log 'text for search' ./ How is it most convenient to parse? Given that after -o , this is all the same value of an optional argument.
I tried to do regex :
/((-[\w]) (.*)?) ((-[\w]) (.*)?)/g I tried to use command parsers, such as: commons cli, google options. But they did not adequately spars the -o option.
Can modify the routine? Or how else can you?
option.getValues()option to get the value for-oon my side asoption.getValues()and then compile a single string from this array is acceptable? Although, this is a crutch, most likely - Chubatiy'text for search' ./stupidly disappears. - Tsyklop pm