A
A
Anton @ Lyalin2017-01-17 17:23:51
Java
Anton @ Lyalin, 2017-01-17 17:23:51

How to get multiple arguments through common cli?

Option optionEXP = new Option("exp", true, "Выражение для поиска");
        optionEXP.setArgs(3);

For example, such code, the option "-exp" is entered in the terminal, then the argument is written, my argument should look like this: "ivan ivan ivanovich". But the code, for some reason, does not receive all three parts, but only the first, although it should take all three.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
al_gon, 2017-01-17
@toxa_1995

Must work
-exp "иванов иван иванович"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question