Refinements

This commit is contained in:
Ircama 2023-08-06 17:24:30 +02:00
parent 2d6d498b41
commit 1ea759c38a
2 changed files with 12 additions and 16 deletions

View file

@ -35,23 +35,20 @@ It is tested with Ubuntu / Windows Subsystem for Linux, Windows.
## Usage ## Usage
``` ```
usage: epson_print_conf.py [-h] -m MODEL -a HOSTNAME [-i] [-q QUERY] [--reset_waste_ink] usage: epson_print_conf.py [-h] -m MODEL -a HOSTNAME [-i] [-q QUERY] [--reset_waste_ink] [--detect-key] [-d]
[--detect-key] [-d] [-e DUMP_EEPROM DUMP_EEPROM] [--dry-run] [-e DUMP_EEPROM DUMP_EEPROM] [--dry-run] [--write-first-ti-received-time FTRT FTRT FTRT]
[--write-first-ti-received-time FTRT FTRT FTRT] [-R READ_EEPROM] [-W WRITE_EEPROM] [-S WS_TO_STRING] [-t TIMEOUT] [-r RETRIES]
[-R READ_EEPROM] [-W WRITE_EEPROM] [-S WS_TO_STRING] [-c CONFIG_FILE]
[-t TIMEOUT] [-r RETRIES] [-c CONFIG_FILE]
optional arguments: optional arguments:
-h, --help show this help message and exit -h, --help show this help message and exit
-m MODEL, --model MODEL -m MODEL, --model MODEL
Printer model. Example: -m XP-205 (use ? to print all supported Printer model. Example: -m XP-205 (use ? to print all supported models)
models)
-a HOSTNAME, --address HOSTNAME -a HOSTNAME, --address HOSTNAME
Printer host name or IP address. (Example: -m 192.168.1.87) Printer host name or IP address. (Example: -m 192.168.1.87)
-i, --info Print all available information and statistics (default option) -i, --info Print all available information and statistics (default option)
-q QUERY, --query QUERY -q QUERY, --query QUERY
Print specific information. (Use ? to list all available Print specific information. (Use ? to list all available queries)
queries)
--reset_waste_ink Reset all waste ink levels to 0 --reset_waste_ink Reset all waste ink levels to 0
--detect-key Detect the read_key via brute force --detect-key Detect the read_key via brute force
-d, --debug Print debug information -d, --debug Print debug information
@ -61,11 +58,9 @@ optional arguments:
--write-first-ti-received-time FTRT FTRT FTRT --write-first-ti-received-time FTRT FTRT FTRT
Change the first TI received time (arguments: year, month, day) Change the first TI received time (arguments: year, month, day)
-R READ_EEPROM, --read-eeprom READ_EEPROM -R READ_EEPROM, --read-eeprom READ_EEPROM
Read the values of a list of printer EEPROM addreses. Format is: Read the values of a list of printer EEPROM addreses. Format is: address [, ...]
address [, ...]
-W WRITE_EEPROM, --write-eeprom WRITE_EEPROM -W WRITE_EEPROM, --write-eeprom WRITE_EEPROM
Write related values to a list of printer EEPROM addresses. Write related values to a list of printer EEPROM addresses. Format is: address: value [, ...]
Format is: address: value [, ...]
-S WS_TO_STRING, --write-sequence-to-string WS_TO_STRING -S WS_TO_STRING, --write-sequence-to-string WS_TO_STRING
Convert write sequence of numbers to string. Convert write sequence of numbers to string.
-t TIMEOUT, --timeout TIMEOUT -t TIMEOUT, --timeout TIMEOUT
@ -73,8 +68,8 @@ optional arguments:
-r RETRIES, --retries RETRIES -r RETRIES, --retries RETRIES
SNMP GET retries (floating point argument) SNMP GET retries (floating point argument)
-c CONFIG_FILE, --config CONFIG_FILE -c CONFIG_FILE, --config CONFIG_FILE
read a configuration file including the full log dump of a read a configuration file including the full log dump of a previous operation with '-d' flag
previous operation instead of accessing the printer via SNMP (instead of accessing the printer via SNMP)
Epson Printer Configuration via SNMP (TCP/IP) Epson Printer Configuration via SNMP (TCP/IP)
``` ```

View file

@ -1517,7 +1517,8 @@ if __name__ == "__main__":
dest='config_file', dest='config_file',
type=argparse.FileType('r'), type=argparse.FileType('r'),
help="read a configuration file including the full log dump of a " help="read a configuration file including the full log dump of a "
"previous operation instead of accessing the printer via SNMP", "previous operation with '-d' flag (instead of accessing the "
"printer via SNMP)",
default=0, default=0,
nargs=1, nargs=1,
metavar='CONFIG_FILE') metavar='CONFIG_FILE')