advgetopt 2.0.49
Parse complex command line arguments and configuration files in C++.
Namespaces | Functions | Variables
advgetopt.cpp File Reference

Advanced getopt implementation. More...

#include "advgetopt/advgetopt.h"
#include "advgetopt/exception.h"
#include <snapdev/join_strings.h>
#include <snapdev/not_reached.h>
#include <cppthread/log.h>
#include <libutf8/iterator.h>
#include <string.h>
#include <snapdev/poison.h>
Include dependency graph for advgetopt.cpp:

Go to the source code of this file.

Namespaces

namespace  advgetopt
 The advgetopt environment to parse command line options.
 
namespace  advgetopt::anonymous_namespace{advgetopt.cpp}
 

Functions

void advgetopt::anonymous_namespace{advgetopt.cpp}::check_for_show_sources (int argc, char *argv[])
 Check for a "--show-option-sources" flag.
 
bool advgetopt::anonymous_namespace{advgetopt.cpp}::is_arg (char const *a)
 Check whether this parameter is an argument.
 

Variables

option const advgetopt::anonymous_namespace{advgetopt.cpp}::g_if_configuration_filename_system_options []
 Optional list of options.
 
option const advgetopt::anonymous_namespace{advgetopt.cpp}::g_system_options []
 Definitions of the system options.
 

Detailed Description

The advgetopt class and implementation is an advanced library to parse command line parameters from static definitions specified by the caller.

The class supports the command line options, options found in a default configuration file or in a user defined configuration file.

The class also includes support for displaying error messages and help information about all the command line arguments.

Definition in file advgetopt.cpp.

This document is part of the Snap! Websites Project.

Copyright by Made to Order Software Corp.