1: <?php declare(strict_types=1);
2:
3: namespace Salient\Contract\Cli;
4:
5: /**
6: * Unknown value policy for command line options of type ONE_OF, ONE_OF_OPTIONAL
7: * and ONE_OF_POSITIONAL
8: *
9: * @api
10: */
11: interface CliOptionValueUnknownPolicy
12: {
13: /**
14: * Throw an exception if an unknown value is given
15: *
16: * This is the default policy.
17: */
18: public const REJECT = 0;
19:
20: /**
21: * If an unknown value is given, print a warning and discard it
22: */
23: public const DISCARD = 1;
24:
25: /**
26: * Silently accept unknown values
27: */
28: public const ACCEPT = 2;
29: }
30: