Fix WSLC parser unit test argument overrides (#41496)
Update the remaining parser test call site to use ArgumentOverrides after the Argument::Create API change. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: Ben Hillis <benhill@ntdev.microsoft.com> Copilot-Session: eb7946ff-cc0b-4ff1-a059-571334b1c988
Ben Hillis committed
Sep 1, 2026 at 15:07 UTC
8e0c611cfbf573cb22ef98ee9a1a8c41c471b9d5
1 file changed
+1
-1
test/windows/wslc/WSLCCLIParserUnitTests.cpp
+1
-1
@@ -667,7 +667,7 @@ class WSLCCLIParserUnitTests
667
// adjoined form. The inspect family depends on this for docker's `-f json`.
668
TEST_METHOD(Value_AliasCarriesValue)
669
{
670
- std::vector<Argument> defs = {Argument::Create(ArgType::InspectFormat), Argument::Create(ArgType::ObjectId, false, Limit::Unlimited)};
670
+ std::vector<Argument> defs = {Argument::Create(ArgType::InspectFormat), Argument::Create(ArgType::ObjectId, {.Limit = Limit::Unlimited})};
671
672
VERIFY_ARE_EQUAL(wsl::shared::c_jsonCompactIndent, ParseFlags(L"wslc -f json cont1", defs).GetValue<ArgType::InspectFormat>());
673
VERIFY_ARE_EQUAL(wsl::shared::c_jsonCompactIndent, ParseFlags(L"wslc -f=json cont1", defs).GetValue<ArgType::InspectFormat>());