How can I show in printhelp that an option can be solicited many times?

40 views Asked by At

I am using commons-cli library to manage options passed to my command. Am building a helpformatter to detail the usage for users.

What am obtaing as output is that :

usage: java mudebs.broker.BrokerMain

startbroker --uri <-this broker URI-> [--neigh <-a remote broker URIs->] [--log <-logger.level->] [--perfconfigfile <-arg->]

but since --neigh and -- log can be sollicited multiple times for the same command

I want to have such an output:

usage: java mudebs.broker.BrokerMain

startbroker --uri <-this broker URI-> [--neigh <-a remote broker URIs->...] [--log <-logger.level->...] [--perfconfigfile <-arg->]

Is that possible ?

0

There are 0 answers