readme: fixed cli flags (#25)

This commit is contained in:
Tsygankov-Slava 2022-06-25 20:09:48 +03:00 committed by GitHub
parent 8bfffab3ab
commit 3dd40d3b5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -98,11 +98,13 @@ php-parser [flags] <path> ...
``` ```
| flag | type | description | | flag | type | description |
| ---------- | -------- | ----------------------------------- | |------------|----------|-------------------------------------|
| `--p` | `bool` | Print file paths | | `-p` | `bool` | Print file paths |
| `--e` | `bool` | Print errors | | `-e` | `bool` | Print errors |
| `--d` | `bool` | Dump AST in Golang format | | `-d` | `bool` | Dump AST in Golang format |
| `--r` | `bool` | Resolve names | | `-r` | `bool` | Resolve names |
| `--pb` | `bool` | Print AST back into the parsed file |
| `--time` | `bool` | Print execution time |
| `--prof` | `string` | Start profiler: `[cpu, mem, trace]` | | `--prof` | `string` | Start profiler: `[cpu, mem, trace]` |
| `--phpver` | `string` | PHP version (default: 8.0) | | `--phpver` | `string` | PHP version (default: 8.0) |