Skip to content

Instantly share code, notes, and snippets.

@letmaik
letmaik / print-program-options.cc
Last active January 19, 2017 15:12 — forked from gesquive/print-program-options.cc
Methods to print out boost::program_options objects (C++11)
#include <string.h>
#include <iostream>
#include "boost/program_options.hpp"
#include "boost/filesystem.hpp"
#include "boost/any.hpp"
namespace po = boost::program_options;
inline void PrintUsage(const boost::program_options::options_description desc) {
std::cout << "Usage: " << app_name << " [options]" << std::endl;