Skip to main content
1 vote
1 answer
157 views

I am attempting to create a program with the following command line usage: test_program [General Options] <mode_1_option_1> <required_option_1> OR test_program [General Options] --toggle-...
Danny Brent's user avatar
2 votes
1 answer
116 views

I am using boost::program_options to make a simple executable with the following general syntax: program --command <cmd> [args] For example: program --command run --listen locahost --port 8080 ...
Soroush Rabiei's user avatar
0 votes
0 answers
129 views

Problem I am trying to port a C++ project from Linux to MacOs sonoma with the arm64 architecture. Configuring is done via CMAKE and the following toolchain GCC 14 from Homebrew HDF5 (installed via ...
MXI's user avatar
  • 1
1 vote
1 answer
127 views

I'm new to C++ and trying to use Boost's program_options header to create a vector<string> of positional options, but no matter what I do, I can't seem to actually do anything or iterate over ...
zayd's user avatar
  • 21
1 vote
1 answer
317 views

Stupid question (but I don't find anything on boost.org): how do I catch exceptions from boost::program_options? Invoking #include <boost/program_options.hpp> #include <iostream> int main(...
Bubaya's user avatar
  • 893
0 votes
0 answers
42 views

ladies and guys! When I was writing my application I started writing a settings class: Config.h: #ifndef CONFIG_H #define CONFIG_H #include <iostream> #include <fstream> #include <...
Leon's user avatar
  • 1
1 vote
2 answers
274 views

I am learning boost through examples, but I do not understand why the following c++ code failed to execute, I am only changing int to uint8_t, am I missing anything? #include <stdint.h> #include ...
nochenon's user avatar
  • 376
0 votes
1 answer
51 views

I am trying to use Boost.program_options, but positional arguments do not work. I am a newbie at this. #include "Application.h" #include <iostream> #include <vector> #include &...
Generic's user avatar
1 vote
1 answer
127 views

I am using boost add_options() like this way: 
("setclient", po::value<std::string>(), "<awsipaddress>[:awsport[:mystring]] Change the settings.") This works well if I ...
Asha's user avatar
  • 13
1 vote
1 answer
143 views

Let's assume we have the following boost::program_options-specific options description: po::options_description main_desc("Usage: my_app [--version] OBJECT { COMMAND | --help }\n" ...
Degoah's user avatar
  • 394
0 votes
1 answer
313 views

The line attempting to add_options() of type std::optional<string> results in a compile error. does boost::program_options not support this type? how are optional options managed w/ boost::...
BernardIE5317's user avatar
2 votes
0 answers
126 views

My executable has two modes of operation which are selectable via --mode=foo or --mode=bar. If mode=foo, then --abc option should be required and --xyz should not be specified. If mode=bar, then --xyz ...
Paul Grinberg's user avatar
1 vote
1 answer
289 views

is it possible to parse multiple mulit-token parameters with the same name? Like: program.exe --param a b c --param foo bar ? I only could get it to work like this: program.exe --param "a b c&...
pettersson's user avatar
0 votes
1 answer
123 views

I am writing a program that would receive as parameters a filename followed by multiple strings. Optionally it could take a -count argument; ./program [-count n] <filename> <string1> <...
Cristian Rotaru's user avatar
2 votes
1 answer
522 views

I have a program that use boost::program_options to parse a command line. One of the parameter is the name of an AMQP exchange, and a default value is provided. For testing purposes, I would like to ...
GabrielGodefroy's user avatar

15 30 50 per page
1
2 3 4 5
26