[LC++]getopt-question
David
filiond at videotron.ca
Fri Dec 13 01:29:01 UTC 2002
Julien Patrick Claassen wrote:
> Hello all!
> I want to call a program with some options. But there are some which exclude
> one another. I.e.: You use either -r or -s, but not both. How can I do it
> nicely with using getopt_long?
> Thanks for any help!
> Kindest regards
> Julien
>
I don't think you can do this directly with getopt_long. I just use a flag
to indicate if an option has been selected.
--
David Filion
Registerd (Slackware) linux user #195143
"Yes, it's manly, but let's face it, so is bungee-jumping with the
cord tied to your testicles." -- Linus Torvalds
More information about the tuxCPProgramming
mailing list