diff --git a/CHANGELOG.md b/CHANGELOG.md index 00382d3..3da4cc6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,12 @@ # Changelog + +## Version 2.0.0 +- Improve properties reading using `nvme id-ctrl` instead of relying on `nvme fw-log` +- Rewrite using a properties object. +- Add -i flag to print information about the available drives. + +**Full Changelog**: [v1.2.2...v2.0.0](https://github.com/not-a-feature/wd_fw_update/compare/v1.2.2...v2.0.0) + ## Version 1.2.2 - Fix download url. - Add http status code test. diff --git a/README.md b/README.md index 939a7b7..fabd846 100644 --- a/README.md +++ b/README.md @@ -59,10 +59,24 @@ Depending on the update mode, it may prompt you to reboot or switch to the new s ## Command-Line Options --version: Display the version of the firmware update tool. + -i, --info: Display information about the available drives. -v, --verbose: Set the log level to INFO. -vv, --very-verbose: Set the log level to DEBUG. - +The -i flag will display about the available drives. + +Example: + +``` +========== Device Info ========== +Device : /dev/nvme0n1 +Model : WD_BLACK SN770 500GB +Current fw version : 731120WD +Slot 1 readonly : False +Slot count : 2 +Current slot : 2 +Slots with firmware : {1: '731030WD', 2: '731120WD'} +``` ## Note diff --git a/src/wd_fw_update/main.py b/src/wd_fw_update/main.py index 1d1ceb2..731f699 100644 --- a/src/wd_fw_update/main.py +++ b/src/wd_fw_update/main.py @@ -67,7 +67,7 @@ def parse_args(args): "-i", "--info", action="store_true", - help="Print information about the current ssd, firmware and more.", + help="Print information about available drives.", ) # parser.add_argument(