$output = new ezcConsoleOutput(); $output->formats->error->color = "red"; $output->formats->error->style = array( "bold" ); $output->formats->error->target = ezcConsoleOutput::TARGET_STDERR; $input = new ezcConsoleInput(); $options["help"] = new ezcConsoleOption( "h", "help" ); $options["help"]->isHelpOption = true; $options["server"] = new ezcConsoleOption( "s", "server" ); $options["server"]->type = ezcConsoleInput::TYPE_STRING; $options["server"]->shorthelp = "The server to fetch mail from."; $options["server"]->longhelp = "The POP server to fetch mail from."; $options["server"]->mandatory = true; // ... $options["verbose"] = new ezcConsoleOption( "v", "verbose" ); $options["verbose"]->type = ezcConsoleInput::TYPE_INT; $options["verbose"]->default = 1; $options["verbose"]->shorthelp = "The verbosity of this program."; $options["verbose"]->longhelp = "Verbosity of 1 is standard and means ยงยง normal info output. 0 will switch info output off.";