Add new target options to the readme

pull/1/head
Gonçalo Valério 2022-03-29 21:44:14 +01:00
parent 37d0217708
commit 76723ddbd5
Signed by: dethos
GPG Key ID: DF557F2BDCC2445E
1 changed files with 7 additions and 5 deletions

View File

@ -43,7 +43,7 @@ This is the available functionality:
.. code::
usage: inlinehashes [-h] [-a {sha256,sha384,sha512}] [-f] [-o OUTPUT] source
usage: inlinehashes [-h] [-a {sha256,sha384,sha512}] [-f] [-t {all,scripts,styles}] source
positional arguments:
source URL or local HTML file to check
@ -53,8 +53,8 @@ This is the available functionality:
-a {sha256,sha384,sha512}, --alg {sha256,sha384,sha512}
Hash algorithm to use (default: sha256)
-f, --full Include full content in the output
-o OUTPUT, --output OUTPUT
Store output in a file.
-t {all,scripts,styles}, --target {all,scripts,styles}
Target inline content to look for
Here is an example of the output:
@ -64,7 +64,9 @@ Here is an example of the output:
[
{
"content": "\n html {\n height: 100%;\n }\n ",
"hash": "sha384-Ku20lQH5qbr4EDPzXD2rf25rEHJNswNYRUNMPjYl7jCe0eHJYDe0gFdQpnKkFUTv"
"hash": "sha384-Ku20lQH5qbr4EDPzXD2rf25rEHJNswNYRUNMPjYl7jCe0eHJYDe0gFdQpnKkFUTv",
"line": 12,
"position": 0
}
]
@ -101,4 +103,4 @@ Here is the same example, but using the python shell:
Contributions
-------------
All contributions and improvements are welcome.
All contributions and improvements are welcome.