Revised README

This commit is contained in:
Ircama 2024-07-28 19:17:22 +02:00
parent ee875e3d41
commit ea967238ef

View file

@ -171,12 +171,12 @@ python3 parse_devices.py -i -m XP-205
After generating the related printer configuration, *epson_print_conf.py* shall be manually edited to copy/paste the output of *parse_devices.py* within its PRINTER_CONFIG dictionary.
The `-m` option is mandatory and is used to filter the printer model in scope. If the produced output is not referred to the target model, use part of the model name as a filter (e.g., only the digits, like `parse_devices.py -i -m 315`) and select the appropriate model from the output.
The `-m` option is optional and is used to filter the printer model in scope. If the produced output is not referred to the target model, use part of the model name as a filter (e.g., only the digits, like `parse_devices.py -i -m 315`) and select the appropriate model from the output.
Program usage:
```
python3 parse_devices.py [-h] -m PRINTER_MODEL [-l LINE_LENGTH] [-i] [-d] [-t] [-v] [-f] [-e] [-c CONFIG_FILE]
parse_devices.py [-h] [-m PRINTER_MODEL] [-l LINE_LENGTH] [-i] [-d] [-t] [-v] [-f] [-e] [-c CONFIG_FILE]
optional arguments:
-h, --help show this help message and exit
@ -192,6 +192,8 @@ optional arguments:
-e, --errors Add last_printer_fatal_errors
-c CONFIG_FILE, --config CONFIG_FILE
use the XML configuration file to generate the configuration
Generate printer configuration from devices.xml
```
The output is better formatted when also installing [black](https://pypi.org/project/black/).