diff --git a/website/reference/cli.md b/website/reference/cli.md index 3900ad4f..f9d5cc1e 100644 --- a/website/reference/cli.md +++ b/website/reference/cli.md @@ -21,9 +21,12 @@ sg run [OPTIONS] --pattern [PATHS]... | Short | Long | Description | |-------|------|-------------| | -p| --pattern `` | AST pattern to match. | +| | --selector `` | AST kind to extract sub-part of pattern to match. | | -r| --rewrite `` | String to replace the matched AST node. | | -l| --lang `` | The language of the pattern query. ast-grep will infer the language based on file extension if this option is omitted. | | | --debug-query`[=]` | Print query pattern's tree-sitter AST. Requires lang be set explicitly. | +| | --strictness `` | The strictness of the pattern [possible values: cst, smart, ast, relaxed, signature] | +| | --follow | Follow symbolic links | | -i| --interactive | Start interactive edit session. Code rewrite only happens inside a session. | | -U| --update-all | Apply all rewrite without confirmation if true. | | | --json`[=