Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14002861
D15422.id37179.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
775 B
Referenced Files
None
Subscribers
None
D15422.id37179.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
@@ -81,6 +81,8 @@
const PARSE_ERROR_CODE = 77;
+ private static $traceModeEnabled = false;
+
/* -( Parsing Arguments )-------------------------------------------------- */
@@ -483,6 +485,7 @@
if ($this->getArg('trace')) {
PhutilServiceProfiler::installEchoListener();
+ self::$traceModeEnabled = true;
}
if ($this->getArg('no-ansi')) {
@@ -824,4 +827,8 @@
Filesystem::writeFile($this->getArg('xprofile'), $data);
}
+ public static function isTraceModeEnabled() {
+ return self::$traceModeEnabled;
+ }
+
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Oct 26, 11:15 PM (1 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6713440
Default Alt Text
D15422.id37179.diff (775 B)
Attached To
Mode
D15422: Allow things to figure out if `--trace` was passed
Attached
Detach File
Event Timeline
Log In to Comment