1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124
|
# `cli_decoding`
When using the CLI, you can use some of the parameters listed below to control
the way inputed files are being decoded or interpreted.
## Overview
```yaml title=".PyFunceble.overwrite.yaml"
cli_decoding:
# Provides everything related to the decoding of input files from the CLI.
# Enable/Disable the aggressive decoding.
#
# The aggressive mode is a mode that tries to decode as much as possible without
# trying to follow any technical conventions.
#
# When decoding AdBlock filter lists, it will try to decode almost every
# domains it finds.
#
# When decoding hosts file or plain text files, it will try to convert URLS
# (e.g https://example.org/hello/world) into domains to test (e.g example.org).
#
# CLI Argument: --aggressive
aggressive: no
# Enable/Disable the (exclusive) decoding using the adblock decoder.
#
# WARNING:
# Activating this parameter in your configuration file, will make
# PyFunceble assume that it has to decode adblock files - exclusively.
#
# CLI Argument: --adblock
adblock: no
# Enable/Disable the (exclusive) decoding using the RPZ decoder.
#
# WARNING:
# Activating this parameter in your configuration file, will make
# PyFunceble assume that it has to decode RPZ files - exclusively.
#
# CLI Argument: --rpz
rpz: no
# Enable or disable the reduction of wildcards.
#
# Meaning that any caught wildcards (e.g. *.example.org) will be reduced so
# that we have a "valid" domain to test (e.g. example.org).
#
# WARNING:
# Activating this parameter will reduce wildcards (e.g *.example.org) to
# match domains (e.g ecample.org)
#
# CLI Argument: --wildcard
wildcard: no
```
## `aggressive`
Enable or disable the aggressive mode. The aggressive mode is a mode that tries
to decode as much as possible without trying to follow any technical conventions.
When using this parameter while decoding AdBlock filter lists, it will try to
decode almost every domains it finds.
However, when using this parameter while decoding hosts or plain lists, it will
also convert URLs (e.g `https://example.com/hello/world`) into domains to test
(e.g `example.com`).
**Type:** boolean
**Default Value:** `no`
**Available Values:** `yes`, `no`
**CLI Argument:** `--aggressive`
## `adblock`
Enable or disable the (exclusive) decoding of AdBlock filter lists.
!!! danger "Beware!!!!"
If you choose to activate this parameter in your configuration file,
PyFunceble will assume that any inputed files are AdBlock filter lists to
decode.
**Type:** boolean
**Default Value:** `no`
**Available Values:** `yes`, `no`
**CLI Argument:** `--adblock`
## `rpz`
Enable or disable the (exclusive) decoding of RPZ files.
!!! danger "Beware!!!!"
If you choose to active this parameter in your configuration file,
PyFunceble will assume that any inputed files are RPZ files to decode.
**Type:** boolean
**Default Value:** `no`
**Available Values:** `yes`, `no`
**CLI Argument:** `--rpz`
## `wildcard`
Enable or disable the reduction of wildcards. Meaning that any caught wildcards
(e.g. \*.example.org) will be reduced so that we have a "valid" domain to test
(e.g. example.org).
**Type:** boolean
**Default Value:** `no`
**Available Values:** `yes`, `no`
**CLI Argument:** `--wildcard`
|