PDA

View Full Version : [SOLVED] C++ parse --arguments with getopt or else



deff182
June 7th, 2010, 01:09 PM
Hi, how do i get double '-' params(for instance --help) or determine whether they were called ?:popcorn:

dwhitney67
June 7th, 2010, 03:08 PM
Use getopt_long().

IIRC, the manpage has an example.

deff182
June 7th, 2010, 03:57 PM
thanks:)