Copilot commented on code in PR #12804:
URL: https://github.com/apache/trafficserver/pull/12804#discussion_r2686928891
##########
src/tscore/ArgParser.cc:
##########
@@ -303,6 +306,7 @@ ArgParser::Command::add_option(std::string const
&long_option, std::string const
if (short_option != "-" && !short_option.empty()) {
_option_map[short_option] = long_option;
}
+ _last_added_option = long_option; // track for with_requires() chaining
Review Comment:
Corrected spelling of 'requires' to 'required' in the comment.
```suggestion
_last_added_option = long_option; // track for with_required() chaining
```
##########
include/tscore/ArgParser.h:
##########
@@ -248,6 +257,11 @@ class ArgParser
// Key: long option name. Value: group name
std::map<std::string, std::string> _option_to_group;
+ // Option dependencies: dependent_option -> list of required options
+ std::map<std::string, std::vector<std::string>> _option_dependencies;
+ // Track the last added option for requires() chaining
Review Comment:
Corrected spelling of 'requires' to 'required' in the comment to match the
actual method name.
```suggestion
// Track the last added option for required() chaining
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]