5 #include <argparse/argparse.hpp>
7 using argparse::ArgumentParser;
19 using ArgumentParser::ArgumentParser;
24 const std::string
name()
const{
25 return this->m_program_name;
30 const std::list<std::reference_wrapper<ArgumentParser>>&
subparsers()
const{
31 return this->m_subparsers;
41 for (
const std::reference_wrapper<ArgumentParser>& subparser : this->m_subparsers) {
42 if (this->is_subcommand_used(subparser.get())) {
Extended ArgumentParser with MaCh3-specific functionality.
const std::string name() const
Get the name of this parser/subcommand.
virtual ~MaCh3ArgumentParser()=default
const std::list< std::reference_wrapper< ArgumentParser > > & subparsers() const
Get the list of registered subparsers.
const MaCh3ArgumentParser & get_subcommand_used() const
Get the subcommand that was used in parsing.
Main namespace for MaCh3 software.