You are not logged in.
Pages: 1
I'm writing my first C++ application and was wondering with the de facto standard is for parsing command line arguments?
I see that popt is pretty popular but I want to make sure that I'm using something that is pretty standard.
Offline
I've never seen a good one, though boost's is ok.
The defacto standard is to use gnu getopt_long
Offline
well getopt is part of POSIX and if portability is in mind that stick to it, if you do know that gnu stuff will be available then geopt_long is bit fancier
Offline
there's also popt which is (if i'm not mistaken) even fancier
Offline
I went with boost becuase it's fairly simple to use and also supports config files. I'm not worried about compatability too much due to the fact that it's just an in house app and it will only be running on Arch. Thanks alot guys.
Offline
GNU Gengetopt can build nice command-line parsers.
Offline
The plus side of using boost is that you're already depending on boost and can use all the good boost libraries (I personally don't think program_options is very good) - boost::filesystem, boost::threads, boost::asio are all great
Offline
Pages: 1