/* * Copyright (c) 2023, Ali Mohammad Pur * * SPDX-License-Identifier: BSD-2-Clause */ #include namespace AK { void OptionParser::reset_state() { m_arg_index = 0; m_consumed_args = 0; m_index_into_multioption_argument = 0; m_stop_on_first_non_option = false; } OptionParser::GetOptResult OptionParser::getopt(Span args, StringView short_options, Span