Re: [C++] Command line parser



Hello Adam,

On Thu, 26 Apr 2007 07:26:24 UTC, AD <adeon@xxxxxxxxxxxxxx> wrote:


Hi,

Is there any command line parser which could handle long options
preceded with single dash (e.g. "-help")?

Adam

What is wrong with writing your own parser to fit your needs?

When you see [argv[x] == "-help"] take the desired action or set
a flag to take the action later.

David
.



Relevant Pages

  • Re: writing part of a stream to a file
    ... In that case I actually think it would be easier to write your own AVI ... writing my own parser and writer seems like a big headach(mainly ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: Writing a compiler compiler
    ... I think you start writing a parser generator by writing a parser. ... Once you have the parsing details down, ...
    (comp.compilers)
  • Re: pyparsing and LaTeX?
    ... which is a pretty simple task compared to writing a full parser ... > like pyLaTeX ... You might check out the LyX project. ...
    (comp.lang.python)
  • Re: Future FASMLIB website
    ... to convert a hex text string to a binary value if I just call a ... should I later call a function in FASMLIB instead of using my own? ... To me, writing a Text Parser is a very trivial task, because ...
    (alt.lang.asm)
  • Re: Newibe C++ XML Questions
    ... Consider writing your own simple parser. ... pattern works very well for this. ... For some of these full-featured XML parsers out there writing your own ...
    (comp.lang.cpp)