Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15412282
D21310.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D21310.id.diff
View Options
diff --git a/src/toolset/ArcanistWorkflowArgument.php b/src/toolset/ArcanistWorkflowArgument.php
--- a/src/toolset/ArcanistWorkflowArgument.php
+++ b/src/toolset/ArcanistWorkflowArgument.php
@@ -8,6 +8,8 @@
private $wildcard;
private $parameter;
private $isPathArgument;
+ private $shortFlag;
+ private $repeatable;
public function setKey($key) {
$this->key = $key;
@@ -27,6 +29,24 @@
return $this->wildcard;
}
+ public function setShortFlag($short_flag) {
+ $this->shortFlag = $short_flag;
+ return $this;
+ }
+
+ public function getShortFlag() {
+ return $this->shortFlag;
+ }
+
+ public function setRepeatable($repeatable) {
+ $this->repeatable = $repeatable;
+ return $this;
+ }
+
+ public function getRepeatable() {
+ return $this->repeatable;
+ }
+
public function getPhutilSpecification() {
$spec = array(
'name' => $this->getKey(),
@@ -46,6 +66,16 @@
$spec['help'] = $help;
}
+ $short = $this->getShortFlag();
+ if ($short !== null) {
+ $spec['short'] = $short;
+ }
+
+ $repeatable = $this->getRepeatable();
+ if ($repeatable !== null) {
+ $spec['repeat'] = $repeatable;
+ }
+
return $spec;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Mar 20, 12:15 PM (1 d, 3 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7350552
Default Alt Text
D21310.id.diff (1 KB)
Attached To
Mode
D21310: Support short aliases and repeatable arguments in Arcanist Workflow arguments
Attached
Detach File
Event Timeline
Log In to Comment