From 1ea759c38a8d2d53da3ed1130bd393dfe07fabdf Mon Sep 17 00:00:00 2001 From: Ircama Date: Sun, 6 Aug 2023 17:24:30 +0200 Subject: [PATCH] Refinements --- README.md | 25 ++++++++++--------------- epson_print_conf.py | 3 ++- 2 files changed, 12 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 83e1acb..df90596 100644 --- a/README.md +++ b/README.md @@ -35,23 +35,20 @@ It is tested with Ubuntu / Windows Subsystem for Linux, Windows. ## Usage ``` -usage: epson_print_conf.py [-h] -m MODEL -a HOSTNAME [-i] [-q QUERY] [--reset_waste_ink] - [--detect-key] [-d] [-e DUMP_EEPROM DUMP_EEPROM] [--dry-run] - [--write-first-ti-received-time FTRT FTRT FTRT] - [-R READ_EEPROM] [-W WRITE_EEPROM] [-S WS_TO_STRING] - [-t TIMEOUT] [-r RETRIES] [-c CONFIG_FILE] +usage: epson_print_conf.py [-h] -m MODEL -a HOSTNAME [-i] [-q QUERY] [--reset_waste_ink] [--detect-key] [-d] + [-e DUMP_EEPROM DUMP_EEPROM] [--dry-run] [--write-first-ti-received-time FTRT FTRT FTRT] + [-R READ_EEPROM] [-W WRITE_EEPROM] [-S WS_TO_STRING] [-t TIMEOUT] [-r RETRIES] + [-c CONFIG_FILE] optional arguments: -h, --help show this help message and exit -m MODEL, --model MODEL - Printer model. Example: -m XP-205 (use ? to print all supported - models) + Printer model. Example: -m XP-205 (use ? to print all supported models) -a HOSTNAME, --address HOSTNAME Printer host name or IP address. (Example: -m 192.168.1.87) -i, --info Print all available information and statistics (default option) -q QUERY, --query QUERY - Print specific information. (Use ? to list all available - queries) + Print specific information. (Use ? to list all available queries) --reset_waste_ink Reset all waste ink levels to 0 --detect-key Detect the read_key via brute force -d, --debug Print debug information @@ -61,11 +58,9 @@ optional arguments: --write-first-ti-received-time FTRT FTRT FTRT Change the first TI received time (arguments: year, month, day) -R READ_EEPROM, --read-eeprom READ_EEPROM - Read the values of a list of printer EEPROM addreses. Format is: - address [, ...] + Read the values of a list of printer EEPROM addreses. Format is: address [, ...] -W WRITE_EEPROM, --write-eeprom WRITE_EEPROM - Write related values to a list of printer EEPROM addresses. - Format is: address: value [, ...] + Write related values to a list of printer EEPROM addresses. Format is: address: value [, ...] -S WS_TO_STRING, --write-sequence-to-string WS_TO_STRING Convert write sequence of numbers to string. -t TIMEOUT, --timeout TIMEOUT @@ -73,8 +68,8 @@ optional arguments: -r RETRIES, --retries RETRIES SNMP GET retries (floating point argument) -c CONFIG_FILE, --config CONFIG_FILE - read a configuration file including the full log dump of a - previous operation instead of accessing the printer via SNMP + read a configuration file including the full log dump of a previous operation with '-d' flag + (instead of accessing the printer via SNMP) Epson Printer Configuration via SNMP (TCP/IP) ``` diff --git a/epson_print_conf.py b/epson_print_conf.py index 3d022fd..35f6899 100644 --- a/epson_print_conf.py +++ b/epson_print_conf.py @@ -1517,7 +1517,8 @@ if __name__ == "__main__": dest='config_file', type=argparse.FileType('r'), 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, nargs=1, metavar='CONFIG_FILE')