Library for parsing arguments GNU-style?

Posted by Delan Azabani on Stack Overflow See other posts from Stack Overflow or by Delan Azabani
Published on 2010-05-26T14:18:18Z Indexed on 2010/05/26 14:21 UTC
Read the original article Hit count: 267

Filed under:
|
|
|

I've noticed the basic 'style' of most GNU core applications whereby arguments are:

  • --longoption
  • --longoption=value or --longoption value
  • -abcdefg (multiple options)
  • -iuwww-data (option i, u = www-data)

They follow the above style. I want to avoid writing an argument parser if there's a library that does this using the above style. Is there one you know of?

© Stack Overflow or respective owner

Related posts about c

    Related posts about linux