-
Fixes #361
-
Fixes #357.
-
Fixes #356.
-
Make the usage displaying optional
-
Related to #339.
-
Fixes ##339
-
Move nodiscard before inline.
-
* Fixes #240: Multiple long option names / aliases * We now use a vector of long option names instead of a single name * When specifying an option, you can provide multiple names separated by commas, at most one of which may have a length of 1 (not necessarily the first specified name). The length-1 name is the single-hyphen switch (the "short name"). * Hashing uses the first long name * Option help currently only uses the first long name.
-
…ded end-of-namespace comment (#351)
-
* Fixes #345, fixes #346, regards #340: Put exceptions in a sub-namespace and renamed them accordingly. * Also fixed some "loose ends" regarding namespace indentation which were missing in PR #350. * Dropped `required_option_missing` as it is unused.
-
* Namespace no longer induce indentation * Namespace opening brace now on same line as namespace name * Namespace closing brace now has an empty line before it unless the namespace contents were short and with no empty lines * Namespace closing brace now always followed by a comment with the closed namespace' name
-
* Solve `arguments()` showing empty keys when there is only a short option.
-
Fixes #324
-
Fixes 323. Adds a function to retrieve the program name.
-
* Add iterator (#126) and easily print-out (#223) to ParseResult
-
Fixes #312.
-
Fixes #303
-
Fixes #204.
-
Fixes #277. Makes integer parsing to be more general and allow whatever types the user actually uses instead of hard coding a set of integers.
-
Fixes #288.
-
* Support option value being attached after the option without a space in between. e.g. -j5
-
Fix bug where option name is missing in error.
-
* -Wsuggest-override is not supported by gcc before 5.0 * GCC prior to 5.0 should ignore not only -Wnon-virtual-dtor but also -Weffc++, otherwise non-virtual destructor problems will still be reported. * The `#pragma GCC diagnostic push' should be used before setting up the temporary environment. * When using GCC4.8, use manual lexical analysis instead of regular expressions. * Add gcc4.8 stuff to travis file.
-
* -Wsuggest-override is not supported by gcc before 5.0 * GCC prior to 5.0 should ignore not only -Wnon-virtual-dtor but also -Weffc++, otherwise non-virtual destructor problems will still be reported. * The `#pragma GCC diagnostic push' should be used before setting up the temporary environment.
-
* Improve formatting of help descriptions (#213) * new function: cxxopts::Option::set_width(size_t width) Set the size of a helpline. * new function: cxxopts::Option::set_tab_expansion() Expand the tabs in descriptions. The tabsize 8 chars, base is start of description. The descriptions are not disturbed by adding additional options. * Allow newlines \n and tabs \t in descriptions. Other changes (last commit/new commit): * 1453/1471: size_t for OPTION_LONGEST and OPTION_DESC_GAP. This prevents the static cast in 2086/2140. * 2088/2142: in case of small width the value of "width - longest - OPTION_DEC_GAP" becomes negative. Because size_t is unsigned the result is a big number, and the width of the column of the descriptions is not shortened. * new 2143: When the given width is too small, it is set to longest + OPTION_DESC_GAP + 10 * new 1570: A long description is broken into multiple lines, and the iterator lastSpace remembers the begin of the last word. But when the iterator current reaches the end of line, the whole string from iterator is printed, which in soome cases is too long. Thats why one blank is added to the description to trigger the handling of lastSpace. Accordingly in 1574/1627 the line is shortened by one char. * repaired signed/unsigned issue * changes for unicode
-
Fixes #276. Remove the fix for null dereference warning for GCC after 10.1.0 because this was removed in later versions.
-
Several clang-tidy improvements.
-
Workaround for GCC 10 null dereference warning.
-
We also add the suggested `override` keyword.
-
…ic flags are set (#238) Makes some fixes to satisfy various strict warnings.
-
Fixes #257. The input array is not modified, so we can declare this as `char const* const*`.