mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-22 06:42:41 +01:00
When arc
is run with --trace
, print out argv explicitly
Summary: Ref T9993. Users may have shell aliases or wrapper scripts that they forget about. Print out the arguments we received to make it obvious that something went through an indirection layer. Test Plan: Ran `arc version --help`. Reviewers: chad Reviewed By: chad Maniphest Tasks: T9993 Differential Revision: https://secure.phabricator.com/D14797
This commit is contained in:
parent
9a373c88d7
commit
a183c2c4ba
1 changed files with 20 additions and 10 deletions
|
@ -74,17 +74,27 @@ $config = null;
|
||||||
$workflow = null;
|
$workflow = null;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
if ($config_trace_mode) {
|
||||||
|
echo tsprintf(
|
||||||
|
"**<bg:magenta> %s </bg>** %s\n",
|
||||||
|
pht('ARGV'),
|
||||||
|
csprintf('%Ls', $original_argv));
|
||||||
|
|
||||||
$console->writeLog(
|
$libraries = array(
|
||||||
"%s\n",
|
'phutil',
|
||||||
pht(
|
'arcanist',
|
||||||
"libphutil loaded from '%s'.",
|
);
|
||||||
phutil_get_library_root('phutil')));
|
|
||||||
$console->writeLog(
|
foreach ($libraries as $library_name) {
|
||||||
"%s\n",
|
echo tsprintf(
|
||||||
pht(
|
"**<bg:magenta> %s </bg>** %s\n",
|
||||||
"arcanist loaded from '%s'.",
|
pht('LOAD'),
|
||||||
phutil_get_library_root('arcanist')));
|
pht(
|
||||||
|
'Loaded "%s" from "%s".',
|
||||||
|
$library_name,
|
||||||
|
phutil_get_library_root($library_name)));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!$args) {
|
if (!$args) {
|
||||||
if ($help) {
|
if ($help) {
|
||||||
|
|
Loading…
Reference in a new issue