JWS C++ Library
C++ language utility library
option.cpp File Reference

Provides program option support via the command-line or an options file. More...

#include <jwsc++/config.h>
#include <cstdlib>
#include <cstring>
#include <cctype>
#include <iostream>
#include <fstream>
#include <sstream>
#include <list>
#include <vector>
#include "jwsc++/base/exception.h"
#include "jwsc++/base/option.h"

Go to the source code of this file.


Detailed Description

Provides program option support via the command-line or an options file.

Author:
Joseph Schlecht
License:
Creative Commons BY-NC-SA 3.0

A program can use this option support by defining a collection of Options and then calling Options::process().

The options can be represented by a long or short name. Both can take an argument by defining an Option_with_arg. If no argument is called for, use Option_no_arg.

Definition in file option.cpp.