Changeset View
Changeset View
Standalone View
Standalone View
scripts/phutil_symbols.php
| Show First 20 Lines • Show All 46 Lines • ▼ Show 20 Lines | array( | ||||
| 'name' => 'path', | 'name' => 'path', | ||||
| 'wildcard' => true, | 'wildcard' => true, | ||||
| 'help' => 'PHP Source file to analyze.', | 'help' => 'PHP Source file to analyze.', | ||||
| ), | ), | ||||
| )); | )); | ||||
| $paths = $args->getArg('path'); | $paths = $args->getArg('path'); | ||||
| if (count($paths) !== 1) { | if (count($paths) !== 1) { | ||||
| throw new Exception("Specify exactly one path!"); | throw new Exception('Specify exactly one path!'); | ||||
| } | } | ||||
| $path = Filesystem::resolvePath(head($paths)); | $path = Filesystem::resolvePath(head($paths)); | ||||
| $show_all = $args->getArg('all'); | $show_all = $args->getArg('all'); | ||||
| $source_code = Filesystem::readFile($path); | $source_code = Filesystem::readFile($path); | ||||
| try { | try { | ||||
| ▲ Show 20 Lines • Show All 447 Lines • Show Last 20 Lines | |||||