AmbiguousOptionException.php 641 B

1234567891011121314151617181920212223242526
  1. <?php declare(strict_types=1);
  2. /*
  3. * This file is part of sebastian/cli-parser.
  4. *
  5. * (c) Sebastian Bergmann <sebastian@phpunit.de>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace SebastianBergmann\CliParser;
  11. use function sprintf;
  12. use RuntimeException;
  13. final class AmbiguousOptionException extends RuntimeException implements Exception
  14. {
  15. public function __construct(string $option)
  16. {
  17. parent::__construct(
  18. sprintf(
  19. 'Option "%s" is ambiguous',
  20. $option
  21. )
  22. );
  23. }
  24. }