Page MenuHomePhabricator

D15422.id37179.diff
No OneTemporary

D15422.id37179.diff

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

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)

Event Timeline