Search code examples
c++linuxargvargc

How do I benefit from argc and argv in C++, the standard way?


What is the standard way to retrive and check for the argc and argv and what is the best usage and how to do that in linux?

Please provide examples.

"I want to have a complex command-line options and I want to use them in my application" That what I mean.

Thanks


Solution

  • Please use boost program options http://www.boost.org/doc/html/program_options.html for access to the command arguments.