Skip to content

Commit

Permalink
docs: document the --disable-warnings option.
Browse files Browse the repository at this point in the history
  • Loading branch information
plusvic committed Jun 19, 2024
1 parent 6ac53ef commit 12e7ad2
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 5 deletions.
40 changes: 36 additions & 4 deletions site/content/docs/intro/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,35 @@ Examples:

Disables the output produced by the [console]({{< ref "console.md" >}}) module.

### --disable-warnings, -w

Disables all warnings when used alone, or disable specific warnings when
followed by comma-separated list of warnings identifiers.

Disable all warnings:

```
--disable-warnings
```

Disable warning `slow_patterns`:

```
--disable-warnings=slow_patterns
```

Disable warnings `slow_patterns` and `redundant_modifier`:

```
--disable-warnings=slow_patterns,redundant_modifier"
```

Equivalent to the previous one, but using `--disable-warnings` multiple times:

```
--disable-warnings=slow_patterns --disable-warnings=redundant_modifier
```

### --negate, -n

Prints the rules that doesn't match instead of those that match.
Expand Down Expand Up @@ -167,19 +196,22 @@ Each `<RULES_PATH>` is the path of YARA source file or a directory containing
source files. When`<RULES_PATH>` is a directory YARA-X iterates the directory
recursively looking for any `*.yar` or `*.yara` files.

### --disable-warnings

See [--disable-warnings](#--disable-warnings) for the scan command.

### --output, -o <OUTPUT_PATH>

Specify the path for the output binary file containing the compiled rules. By
default, is `output.yarc`.

### --relaxed-re-syntax

See [--relaxed-re-syntax](#--relaxed-re-syntax) for the scan command.

### --path-as-namespace

See [--path-as-namespace](#--path-as-namespace) for the scan command.

### --relaxed-re-syntax

See [--relaxed-re-syntax](#--relaxed-re-syntax) for the scan command.

------

Expand Down
15 changes: 14 additions & 1 deletion site/hugo_stats.json
Original file line number Diff line number Diff line change
Expand Up @@ -280,9 +280,12 @@
"--compiled-rules--c",
"--define--d-varvalue",
"--disable-console-logs",
"--disable-warnings",
"--disable-warnings--w",
"--module--m-module",
"--negate--n",
"--no-colors",
"--output--o-output_path",
"--output-format--o-format",
"--path-as-namespace",
"--path-as-namespace-1",
Expand Down Expand Up @@ -368,11 +371,15 @@
"duplicate-rule-modifiers",
"dyldinfo",
"dylib",
"dylib_hash",
"dyn",
"dyntype",
"dysymtab",
"entitlement_hash",
"entropyoffset-size",
"entropystring",
"entry_point_for_archtype_arg",
"entry_point_for_archtype_arg-subtype_arg",
"example",
"example-1",
"example-2",
Expand All @@ -382,8 +389,10 @@
"example-6",
"example-7",
"example-8",
"example-9",
"examples",
"export",
"export_hash",
"exports_indexfn_name",
"exports_indexfn_regex",
"exports_indexordinal",
Expand All @@ -395,6 +404,8 @@
"file",
"file-size",
"file_flag",
"file_index_for_archtype_arg",
"file_index_for_archtype_arg-subtype_arg",
"file_type",
"fileattributes",
"finding-patterns-at-specific-offsets",
Expand All @@ -403,10 +414,12 @@
"functions",
"further-reading",
"global-rules",
"global-rules-cant-depend-on-non-global-rules",
"go-api",
"h-rh-i-0",
"h-rh-i-1",
"has_dylibdylib_name",
"has_entitlemententitlement",
"has_rpathrpath",
"header",
"hexinteger",
"hexmessage-integer",
Expand Down

0 comments on commit 12e7ad2

Please sign in to comment.