Subject: [Boost-users] program_options: Make PO not eat argc
From: Florian Lindner (mailinglists_at_[hidden])
Date: 2014-10-08 02:54:01


Hello,

I have a couple of libraries (MPI, petsc) that also consume my applications
argc and argv, which is parsed with boost::program_options before.

po seems to eat up argv, i.e. removes all items that it handles. Can I
disable that behavior somehow so that po does not touch argc/argv. Or do I
need to recreate it, e.g. using collect_unrecognized?

Thanks,
Florian