예제 #1
0
 public function __construct($opt_str)
 {
     parent::__construct(sprintf('no such option: %s', $opt_str));
 }
예제 #2
0
 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)));
 }