summaryrefslogtreecommitdiff
path: root/cli/source.cxx
AgeCommit message (Collapse)AuthorFilesLines
2020-04-27Separate tests and examples into individual packagesKaren Arutyunov1-1374/+0
Also make cli module to be explicitly enabled via the config.cli configuration variable.
2020-02-13Drop copyright notice from source codeKaren Arutyunov1-1/+0
2019-07-27Add support for option merging (--generate-merge)Boris Kolpackov1-16/+86
2019-01-16Update copyright yearKaren Arutyunov1-1/+1
2018-05-21Update copyright yearKaren Arutyunov1-1/+1
2018-04-16Add support for note formatting in plain text outputBoris Kolpackov1-1/+1
2018-04-01Implement combined flags (-xyz vs -x -y -z) and values (--foo=bar) supportBoris Kolpackov1-16/+116
Both are enabled by default but can be disable with --no-combined-flags and --no-combined-values options.
2018-03-24Return bool from parse() indicating whether anything has been parsedBoris Kolpackov1-12/+29
2018-03-24Add --keep-separator optionBoris Kolpackov1-4/+9
2018-03-19Add support for exclude-base value in --class-doc optionBoris Kolpackov1-2/+2
2017-05-03Remove stray semicolon from generated codeBoris Kolpackov1-1/+1
2017-01-03Update copyright yearBoris Kolpackov1-1/+1
2016-11-15Start switch to build2Boris Kolpackov1-2/+2
2016-02-11Add support for ids in paragraphs, local fragment references in linksBoris Kolpackov1-0/+10
For example: " \h#hello|Hello Example| See the \l{#hello Hello Example} "
2016-02-11First part of TOC generation support (no links yet)Boris Kolpackov1-4/+4
Currently only supported in the HTML output.
2016-02-09Add support for variable expansion (\$var$) in doc stringsBoris Kolpackov1-4/+4
2016-01-18Initial support for plain text documentation (--generate-txt)Boris Kolpackov1-109/+12
Support for option documentation generation is still a TODO.
2016-01-11In long usage separate options with blank linesBoris Kolpackov1-3/+11
2015-12-09Fix "over-qualification"Boris Kolpackov1-1/+1
2015-12-09Add --std option with c++{98,11,14} values; use function-static in C++11Boris Kolpackov1-12/+13
This way we can use option descriptions during static initialization (e.g., of an Apache module).
2015-12-03Fix unused argument warningBoris Kolpackov1-1/+1
2015-11-26Indent multi-line lists in plain text outputBoris Kolpackov1-6/+34
2015-11-24Implement --class-doc optionBoris Kolpackov1-20/+19
2015-11-24Implement support for documentation inside classesBoris Kolpackov1-124/+159
2015-11-23Add --include-base-last optionBoris Kolpackov1-23/+22
2015-11-23Change print_short_usage() to print_usage()Boris Kolpackov1-10/+4
2015-11-19Implement entire page usage generationBoris Kolpackov1-116/+296
2015-11-18Add support for ANSI colorization of usage outputBoris Kolpackov1-18/+69
2015-11-12Implement plain text formatting for new blocksBoris Kolpackov1-6/+11
2015-10-30Implement scope documentation generation in HTMLBoris Kolpackov1-3/+3
2015-10-29Add parsing support for scope-level documentationBoris Kolpackov1-2/+2
2015-09-02Add --generate-parse optionBoris Kolpackov1-10/+16
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 Kolpackov1-29/+67
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 Kolpackov1-3/+3
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>".
2012-06-15Add support for specifying output stream type (--stream-type)Boris Kolpackov1-1/+2
2012-06-03Use formatted string when calculating option lengthBoris Kolpackov1-3/+4
2012-05-11Avoid unused variable warning for empty option classesBoris Kolpackov1-5/+7
2012-05-10Implement option class inheritanceBoris Kolpackov1-146/+306
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.
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-04Copyright updateBoris Kolpackov1-1/+1
2010-11-19Add option description that can be examined at runtime.Boris Kolpackov1-3/+106
New option: --generate-description.
2010-11-09Add support for suppressing documentation for undocumented optionsBoris Kolpackov1-5/+12
2010-09-14Implement the --cli-namespace optionBoris Kolpackov1-17/+17
2010-06-02Implement generation of specifier functions (--generate-specifier)Boris Kolpackov1-1/+11
These functions determine whether the option was specified on the command line. New test: specifier.
2010-01-01Update copyrightBoris Kolpackov1-1/+1
2009-12-10Get rid of warning in generated code if option class is emptyBoris Kolpackov1-1/+2
2009-12-10Scanner-based parsing with support for element erasingBoris Kolpackov1-16/+33
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-24/+27
This will allow supporting other sources of options, for example, an option file.
2009-11-17Complete the implementation of the option documentationBoris Kolpackov1-4/+4
Add the man page generator. Port CLI usage, HTML documentation and the man page to the auto-generated version. Update examples and documentation.