pldmtool: correct help text for GetPLDMCommands
The previous help example showed the PLDM version bytes in the wrong
order, leading to incorrect requests. The version bytes must be
specified as [alpha update minor major] to match the ver32_t decode
logic and PLDM spec (DSP4014). Updated the help text example to show
the correct order: e.g., version 1.1.0 should be `0x00 0xF0 0xF1 0xF1`.
This helps users avoid confusion when passing version data to --data.
Change-Id: Id7573217bf2e46ffcabb82237bb63d452c4fb33d
Signed-off-by: Manojkiran Eda <manojkiran.eda@gmail.com>
diff --git a/pldmtool/pldm_base_cmd.cpp b/pldmtool/pldm_base_cmd.cpp
index c9bd047..771e838 100644
--- a/pldmtool/pldm_base_cmd.cpp
+++ b/pldmtool/pldm_base_cmd.cpp
@@ -308,7 +308,8 @@
app->add_option(
"-d,--data", inputVersion,
"Set PLDM type version. Which is got from GetPLDMVersion\n"
- "eg: version 1.1.0 then data will be `0xf1 0xf1 0xf0 0x00`");
+ "eg: version 1.1.0 then data will be `0x00 0xF0 0xF1 0xF1`\n"
+ "(format: alpha update minor major)");
}
std::pair<int, std::vector<uint8_t>> createRequestMsg() override