Example #1
0
 public function __construct($opt_str)
 {
     parent::__construct(sprintf('no such option: %s', $opt_str));
 }
 public function __construct($opt_str, $possibilities)
 {
     // Have to skip the BadOptionException constructor or the string gets double-prefixed.
     Horde_Argv_OptionException::__construct(sprintf('ambiguous option: %s (%s?)', $opt_str, implode(', ', $possibilities)));
 }