Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
Boost.Program_options
Boost.Program_options is a Boost library to parse and respond to command-line arguments.
The example below shows a (demonstration) program that responds to either '--help' or '--filename [my_filename]':
#include <iostream> |
Note for Qt Creator users
Add the following line to your Qt project file (to prevent link errors:
LIBS += -lboost_program_options |
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.