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

build-file-of-options tool. More...

#include <advgetopt/advgetopt.h>
#include <advgetopt/exception.h>
#include <advgetopt/version.h>
#include <libutf8/libutf8.h>
#include <libexcept/file_inheritance.h>
#include <snapdev/not_reached.h>
#include <snapdev/trim_string.h>
#include <boost/preprocessor/stringize.hpp>
#include <iostream>
#include <fstream>
#include <sstream>
#include <snapdev/poison.h>
Include dependency graph for build_file_of_options.cpp:

Go to the source code of this file.

Classes

class  anonymous_namespace{build_file_of_options.cpp}::build_file
 

Namespaces

namespace  anonymous_namespace{build_file_of_options.cpp}
 

Functions

int main (int argc, char *argv[])
 

Variables

constexpr char const *const anonymous_namespace{build_file_of_options.cpp}::g_configuration_files []
 The tool looks for this configuration file.
 
advgetopt::option const anonymous_namespace{build_file_of_options.cpp}::g_options []
 Command line options.
 
advgetopt::options_environment const anonymous_namespace{build_file_of_options.cpp}::g_options_environment
 

Detailed Description

We use this tool to convert the comments found in our configuration files in a list of options that can be parsed by the advgetopt objects.

Specifically, it understands the option name, default value, and when available some other features such as ranges and types.

Definition in file build_file_of_options.cpp.

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 423 of file build_file_of_options.cpp.

References advgetopt::getopt_exit::code().

This document is part of the Snap! Websites Project.

Copyright by Made to Order Software Corp.