Update README to include latest zippy.py args

Signed-off-by: Jacob Torrey <jacob@thinkst.com>
pull/6/head
Jacob Torrey 2023-10-15 09:54:02 -06:00
rodzic e43a6ca2cb
commit 1a40de4f55
1 zmienionych plików z 7 dodań i 5 usunięć

Wyświetl plik

@ -31,15 +31,17 @@ Here are each of them compared with both the LZMA and zlib detector across the t
ZipPy will read files passed as command-line arguments, or will read from stdin to allow for piping of text to it.
```
$ python3 zippy.py -h
usage: zippy.py [-h] [-e {zlib,lzma}] [-s | sample_files ...]
usage: zippy.py [-h] [-p P] [-e {zlib,lzma,brotli,ensemble}] [-s | sample_files ...]
positional arguments:
sample_files Text file(s) containing the sample to classify
sample_files Text file(s) containing the sample to classify
options:
-h, --help show this help message and exit
-e {zlib,lzma} Which compression engine to use: lzma or zlib
-s Read from stdin until EOF is reached instead of from a file
-h, --help show this help message and exit
-p P Preset to use with compressor, higher values are slower but provide better compression
-e {zlib,lzma,brotli,ensemble}
Which compression engine to use: lzma, zlib, brotli, or an ensemble of all engines
-s Read from stdin until EOF is reached instead of from a file
$ python3 zippy.py samples/human-generated/about_me.txt
samples/human-generated/about_me.txt
('Human', 0.06013429262166636)