Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15400917
D11279.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
731 B
Referenced Files
None
Subscribers
None
D11279.diff
View Options
diff --git a/src/parser/argument/PhutilArgumentParser.php b/src/parser/argument/PhutilArgumentParser.php
--- a/src/parser/argument/PhutilArgumentParser.php
+++ b/src/parser/argument/PhutilArgumentParser.php
@@ -745,9 +745,13 @@
$out = array();
+ $no_standard_options =
+ !empty($this->specs['show-standard-options']) &&
+ !$this->getArg('show-standard-options');
+
$specs = msort($specs, 'getName');
foreach ($specs as $spec) {
- if ($spec->getStandard() && !$this->getArg('show-standard-options')) {
+ if ($spec->getStandard() && $no_standard_options) {
// If this is a standard argument and the user didn't pass
// --show-standard-options, skip it.
continue;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Mar 18, 2:43 PM (2 w, 3 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7318322
Default Alt Text
D11279.diff (731 B)
Attached To
Mode
D11279: Prevent error in PhutilArgumentParser when not using standard options
Attached
Detach File
Event Timeline
Log In to Comment