summaryrefslogtreecommitdiff
path: root/cli
AgeCommit message (Collapse)AuthorFilesLines
2015-11-16Support specifying documentation variables on command linedocBoris Kolpackov6-184/+227
2015-11-16Redo map parser to use sub-parsers for key, valueBoris Kolpackov1-26/+10
2015-11-16Get rid of warningBoris Kolpackov1-2/+1
2015-11-13Add support for man formattingBoris Kolpackov5-97/+243
2015-11-12Implement plain text formatting for new blocksBoris Kolpackov2-388/+86
2015-11-12New formatter implementationBoris Kolpackov2-41/+431
2015-11-11Implement list supportBoris Kolpackov2-64/+209
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 Kolpackov6-98/+132
2015-10-29Add parsing support for scope-level documentationBoris Kolpackov14-105/+280
2015-09-04Update to work with latest build2Boris Kolpackov1-1/+3
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-04-02Bump version to 1.2.0.a1Boris Kolpackov1-1/+1
2015-04-02Initial build2 supportBoris Kolpackov1-0/+8
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 Kolpackov5-84/+582
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 Kolpackov5-86/+86
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 Kolpackov9-29/+66
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-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 Kolpackov7-33/+125
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 Kolpackov1-1/+1
2012-05-11Avoid unused variable warning for empty option classesBoris Kolpackov1-5/+7
2012-05-10Implement option class inheritanceBoris Kolpackov19-239/+994
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 Kolpackov7-49/+237
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-03-08Print usage/version information to STDOUT instead of STDERRBoris Kolpackov1-4/+8
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 Kolpackov2-7/+21
2011-01-20Add support for multiple file options and file search callbacksBoris Kolpackov3-11/+100