+ result += " [";
+ if(o->get_short())
+ {
+ result += format("-%c", o->get_short());
+ if(!o->get_long().empty())
+ result += '|';
+ else if(o->get_arg_type()==OPTIONAL_ARG)
+ result += format("[%s]", o->get_metavar());
+ else if(o->get_arg_type()==REQUIRED_ARG)
+ result += format(" %s", o->get_metavar());
+ }
+ if(!o->get_long().empty())
+ {
+ result += format("--%s", o->get_long());