125 absl::Span<const std::string> args) {
129 for (
size_t i = 0; i < args.size(); ++i) {
130 const std::string& token = args[i];
138 if (token ==
"--help" || token ==
"-h") {
139 if (i + 1 < args.size() && !absl::StartsWith(args[i + 1],
"-")) {
146 if (absl::StartsWith(token,
"--help=")) {
147 std::string target = token.substr(7);
148 if (target.empty()) {
156 if (
bool* action = FindActionFlag(token, options)) {
161 if (token ==
"--tui" || token ==
"--interactive") {
162 return absl::InvalidArgumentError(
163 "--tui/--interactive was removed; use `z3ed help` for CLI "
167 absl::StatusOr<size_t> consumed = ApplyGlobalFlag(args, i);
168 if (!consumed.ok()) {
169 return consumed.status();
bool equals(InputIt1 first1, InputIt1 last1, InputIt2 first2, InputIt2 last2, BinaryPredicate p)