summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2015-11-11Implement list supportBoris Kolpackov3-64/+210
2015-11-10Rework paragraph block handling in formatterBoris Kolpackov1-47/+122
2015-11-09Implement support pre-formatted fragmentsBoris Kolpackov3-30/+164
For example: / x y z / Other text.
2015-10-31Add support for expanding documentation variablesBoris Kolpackov1-15/+83
2015-10-31Parse and enter documentation variablesBoris Kolpackov3-27/+94
2015-10-31Add support for \h paragraphBoris Kolpackov1-17/+84
2015-10-30Reimplement format() to first split string into paragraphsBoris Kolpackov2-65/+124
2015-10-30Implement scope documentation generation in HTMLBoris Kolpackov8-345/+380
2015-10-29Add parsing support for scope-level documentationBoris Kolpackov15-106/+286
2015-10-29Regenerate man pagesBoris Kolpackov2-0/+25
2015-09-04Update to work with latest build2Boris Kolpackov3-3/+8
2015-09-02Add --generate-parse optionBoris Kolpackov6-20/+60
When specified, CLI will generate parse() functions instead of parsing constructors. This is primarily useful for being able to parse into an already initialized options class instance, for example, to implement merging/overriding.
2015-09-02Add --short-usage optionBoris Kolpackov8-41/+171
When combined with --long-usage, it makes CLI generate both short and long usage printing code.
2015-09-01Allow specification of argument documentation for flagsBoris Kolpackov3-7/+7
If all three documentation strings are specified for a bool option, then the usage, html, and man documentation will include the argument documentation (first string), just like for non-flag options. This is primarily useful for using options to handle commands where you may want to end up with something like "help [<options>] <command>".
2015-05-11Change project_name to projectBoris Kolpackov1-1/+1
2015-05-11Explicitly loading of config.build is no longer necessaryBoris Kolpackov1-2/+0
2015-04-02Bump version to 1.2.0.a1Boris Kolpackov6-6/+6
2015-04-02Initial build2 supportBoris Kolpackov5-0/+19
2015-04-02Add C++ modeline (-*- C++ -*-) to generated filesBoris Kolpackov1-1/+3
2015-04-02Cosmetic changeBoris Kolpackov1-1/+1
2014-10-13Get rid of GCC warningMichael Shepanski1-2/+2
2012-06-29Fix ambiguous lookup bugBoris Kolpackov1-1/+1
2012-06-21Generate "direct access" modifier in addition to "setter"Boris Kolpackov2-0/+14
2012-06-21Make default constructor public for non-abstract classesBoris Kolpackov1-3/+7
2012-06-20Add ability to specify prologues/epilogues for generated C++ filesBoris Kolpackov7-96/+706
Also add options to specify text prologues/epilogues in addition to files for generated man and html files.
2012-06-20Rename --*logue options to --*logue-fileBoris Kolpackov8-98/+98
2012-06-20Add forward declarations for parser to allow custom specializationsBoris Kolpackov1-0/+7
2012-06-15Add support for specifying output stream type (--stream-type)Boris Kolpackov11-29/+74
2012-06-07Fix documentation stylesheetBoris Kolpackov2-34/+37
2012-06-04Remove unnecessary default: statementBoris Kolpackov1-2/+0
2012-06-04Fix bug in argument formattingBoris Kolpackov1-0/+5
2012-06-03Use formatted string when calculating option lengthBoris Kolpackov1-3/+4
2012-06-03Generate certain template runtime code in every source fileBoris Kolpackov3-381/+389
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.
2012-06-03Documentation updateBoris Kolpackov2-8/+13
2012-05-11Fix bug in trailing space handling in documentation stringsBoris Kolpackov1-4/+4
2012-05-11Add support for specifying multiple classes with --class optionBoris Kolpackov6-34/+68
2012-05-11Move lookup to semantic graph from parserBoris Kolpackov4-125/+131
2012-05-11Generate all options for all classes in single HTML definition listBoris Kolpackov1-4/+4
This way we won't have any irregular gaps is the option list is assembled from multiple classes.
2012-05-11Add support for -I optionBoris Kolpackov10-34/+134
Now quote-included ("") option files are searched for relative to the including file while bracket-included (<>) ones are search in the directories specified with -I.
2012-05-11Fix lookup bugBoris Kolpackov2-4/+5
2012-05-11Avoid unused variable warning for empty option classesBoris Kolpackov1-5/+7
2012-05-10Implement option class inheritanceBoris Kolpackov39-250/+1222
For now multiple, non-virtual inheritance is supported. An option class can now also be declared abstract using the class c = 0 {...}; syntax. New option, --exclude-base, controls whether base class information is present in usage and documentation.
2012-05-10Add support for options file inclusionBoris Kolpackov14-56/+268
New include-path prefixes, c++: and cli:, are now recognized (e.g., include <cli:foo>;). Without a prefix, the include declarations is considered to be c++-include unless the path ends with the .cli extension. The cli-included files are loaded and parsed. Currently, only inclusion relative to the current file is supported. Duplicate inclusions are detected and ignored based on the absolute filesystem path. If a file cli-includes another file, then the runtime code is assumed to come from the included file and is not generated.
2012-05-10Cosmetic changesBoris Kolpackov1-2/+2
2012-03-08Print usage/version information to STDOUT instead of STDERRBoris Kolpackov3-18/+22
2011-12-14Add missing breakBoris Kolpackov1-0/+1
2011-11-18Assume we have 78 character per line instead of 79 for Windows portabilityBoris Kolpackov1-1/+5
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 Kolpackov3-10/+28
2011-01-20Add support for multiple file options and file search callbacksBoris Kolpackov5-16/+130