nemora-postd: update add_option function
- cli11 update from 1.9.1 to 2.2.2 in PR-57585(ref1)
According cli11's commit(ref2), the add_option function needs update
ref:
1. https://gerrit.openbmc.org/c/openbmc/openbmc/+/57585
2. https://github.com/CLIUtils/CLI11/commit/e2e3cb2fed20b0c25eaf6d2689784b9c0e3730f1
Signed-off-by: Harvey.Wu <Harvey.Wu@quantatw.com>
Change-Id: I165f35dc02d27afb56ca4e88a9e08f0564033acd
diff --git a/subprojects/nemora-postd/nemorad.cpp b/subprojects/nemora-postd/nemorad.cpp
index 5df3b48..33a034a 100644
--- a/subprojects/nemora-postd/nemorad.cpp
+++ b/subprojects/nemora-postd/nemorad.cpp
@@ -60,16 +60,16 @@
CLI::App app("gBMC-side Nemora implementation (POST-code only)");
std::string udp_address_v4_str;
- auto* ipv4_option = app.add_option(
- "--udp4", udp_address_v4_str,
- "Target IPv4 address for UDP communication, i.e., POST streaming.",
- true);
+ auto* ipv4_option = app.add_option("--udp4", udp_address_v4_str,
+ "Target IPv4 address for UDP "
+ "communication, i.e., POST streaming.")
+ ->capture_default_str();
std::string udp_address_v6_str;
- auto* ipv6_option = app.add_option(
- "--udp6", udp_address_v6_str,
- "Target IPv6 address for UDP communication, i.e., POST streaming.",
- true);
+ auto* ipv6_option = app.add_option("--udp6", udp_address_v6_str,
+ "Target IPv6 address for UDP "
+ "communication, i.e., POST streaming.")
+ ->capture_default_str();
// interface is last, and required.
std::string iface_name;