Beispiel #1
0
void help(string syntax,dictionary<string> options)
{
 //help

 options.add("--help","Prints this help");  
 
 //syntax
 
 log();
 log("Syntax is:");
 
 log(syntax.indent(1));
 
 //option
 
 options.update(options.keys().text().justify_left().lines().me(),options.values().me());
 
 log();
 log("Options are:");
   
 for(int i=0;i<options.count();i++)
 {
  auto& current=options.item(i);
  
  log(concat(current._first," ",current._second).indent(1));
 }
}