summaryrefslogtreecommitdiff
path: root/cli/runtime-source.cxx
AgeCommit message (Collapse)AuthorFilesLines
2015-11-16Redo map parser to use sub-parsers for key, valueBoris Kolpackov1-26/+10
2012-06-15Add support for specifying output stream type (--stream-type)Boris Kolpackov1-15/+19
2012-06-03Generate certain template runtime code in every source fileBoris Kolpackov1-373/+382
This is needed if the cli runtime is included from another file instead of being generated. The alternative would be to move that code to the header file. However, that would also require including a lot of standard headers in the generated header file.
2011-01-23Store option names as std::string instead of const char*Boris Kolpackov1-3/+3
With the scanner interface we now cannot assume that the returned value will still be valid after another call to more(). This was the case when we were always scanning argv/argc but now that we have the file scanner, we have to be careful.
2011-01-23Allow the options file search function to ignore the fileBoris Kolpackov1-4/+14
2011-01-20Add support for multiple file options and file search callbacksBoris Kolpackov1-6/+29
2011-01-04Use correct parser interfaceBoris Kolpackov1-6/+12
2011-01-04Copyright updateBoris Kolpackov1-1/+1
2010-11-19Add option description that can be examined at runtime.Boris Kolpackov1-0/+19
New option: --generate-description.
2010-09-14Implement the --cli-namespace optionBoris Kolpackov1-3/+2
2010-08-03Pass missing argument in vector and set parsersBoris Kolpackov1-2/+4
2010-06-04Add support for single quotes in option filesBoris Kolpackov1-2/+3
2010-06-02Add support for quoting in option file scannerBoris Kolpackov1-2/+34
2010-06-02Implement generation of specifier functions (--generate-specifier)Boris Kolpackov1-17/+52
These functions determine whether the option was specified on the command line. New test: specifier.
2010-01-01Update copyrightBoris Kolpackov1-1/+1
2009-12-10Scanner-based parsing with support for element erasingBoris Kolpackov1-5/+223
Also implement argv_file_scanner which provides support for reading command line arguments from the argv array as well as files specified with command line options. New examples: file. New tests: ctor, erase, file.
2009-11-28Use a scanner interface instead of argc/argvBoris Kolpackov1-45/+107
This will allow supporting other sources of options, for example, an option file.
2009-10-28Use assignment initialization for fundamental typesBoris Kolpackov1-3/+3
2009-10-04Add a parser for std::setBoris Kolpackov1-0/+16
2009-10-04Add a parser for std::mapBoris Kolpackov1-1/+58
2009-09-27Generate parsing constructors and parsing codeBoris Kolpackov1-0/+177
Also generate some runtime support code such exceptions, value parsers, etc.