We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58c1e95 commit 1926748Copy full SHA for 1926748
src/think/console/input/Option.php
@@ -11,18 +11,49 @@
11
12
namespace think\console\input;
13
14
+/**
15
+ * 命令行选项
16
+ * @package think\console\input
17
+ */
18
class Option
19
{
-
20
+ // 无需传值
21
const VALUE_NONE = 1;
22
+ // 必须传值
23
const VALUE_REQUIRED = 2;
24
+ // 可选传值
25
const VALUE_OPTIONAL = 4;
26
+ // 传数组值
27
const VALUE_IS_ARRAY = 8;
28
29
+ /**
30
+ * 选项名
31
+ * @var string
32
33
private $name;
34
+
35
36
+ * 选项短名称
37
38
39
private $shortcut;
40
41
42
+ * 选项类型
43
+ * @var int
44
45
private $mode;
46
47
48
+ * 选项默认值
49
+ * @var mixed
50
51
private $default;
52
53
54
+ * 选项描述
55
56
57
private $description;
58
59
/**
0 commit comments