Program_Options - Is there anyway to get the name of executable?
Hi, Is it possible to get name of the executable that started the program using program_options? Thanks in advance, Asif
http://stackoverflow.com/questions/4339128/boostprogram-options-how-to-get-t...
On Wed, Aug 10, 2011 at 17:33, asif saeed
Hi, Is it possible to get name of the executable that started the program using program_options? Thanks in advance, Asif
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
Hi, On Wednesday, 10. August 2011 11:33:02 asif saeed wrote:
Hi,
Is it possible to get name of the executable that started the program using program_options?
I don't know of a way to get it directly from program_options, but it might exist. So in case you definitely require program_options, this won't help and you might actually already be aware of it, but you could use "argv[0]" in any case.
Thanks in advance, Asif
Best, Cedric
participants (3)
-
asif saeed
-
Cedric Laczny
-
Diederick C. Niehorster