improve docu

- add help page to README.txt
- remove -p
- mention optional qrcode module
This commit is contained in:
scito 2022-09-08 21:11:49 +02:00
parent cd2d3258d3
commit 4baf406211
2 changed files with 22 additions and 4 deletions

View file

@ -19,7 +19,25 @@ The secret and otp values can be printed and exported to json or csv. The QR cod
3. Save the captured QR codes in a text file. Save each QR code on a new line. (The captured QR codes look like `otpauth-migration://offline?data=...`)
4. Call this script with the file as input:
python extract_otp_secret_keys.py -p example_export.txt
python extract_otp_secret_keys.py example_export.txt
## Program help: arguments and options
<pre>
usage: extract_otp_secret_keys.py [-h] [--verbose] [--quiet] [--saveqr] [--printqr] [--json JSON] [--csv CSV] infile
positional arguments:
infile file or - for stdin (default: -) with "otpauth-migration://..." URLs separated by newlines, lines starting with # are ignored
options:
-h, --help show this help message and exit
--verbose, -v verbose output
--quiet, -q no stdout output
--saveqr, -s save QR code(s) as images to the "qr" subfolder (requires qrcode module)
--printqr, -p print QR code(s) as text to the terminal (requires qrcode module)
--json JSON, -j JSON export to json file
--csv CSV, -c CSV export to csv file
</pre>
## Dependencies