Commit Graph

  • 292750d27a Replace pragmas with macros Jarryd Beck 2022-07-20 07:49:59 +1000
  • 8849551398 Fix #353. Jarryd Beck 2022-07-18 21:16:04 +1000
  • e976f964c3
    Fix issue #240: Multiple long option names / aliases (#349) Eyal Rozenberg 2022-07-14 09:42:18 +0300
  • 8e525e26f9 Changes following CR by @jarro2783: Eyal Rozenberg 2022-07-13 00:14:42 +0300
  • 43ebb49475 Add changelog entry Jarryd Beck 2022-07-13 07:22:01 +1000
  • d994b9b2b7 Added some test code for #240 to existing unit tests in test/options.cpp. Eyal Rozenberg 2022-07-13 00:05:38 +0300
  • 5cfc740c67 Fixes #240: Multiple long option names / aliases Eyal Rozenberg 2022-07-09 21:49:15 +0300
  • 9cd015ac37
    Regards #340, #345: Removed unnecessary indentation of exceptions namespace + added end-of-namespace comment (#351) Eyal Rozenberg 2022-07-12 23:49:04 +0300
  • cdd00fd805 Regards #340, #345: Removed unnecessary indentation of exceptions namespace + added end-of-namespace comment Eyal Rozenberg 2022-07-12 21:48:56 +0300
  • 628dc9202b
    Fixes #345, fixes #346: Exception code tweaks (#347) Eyal Rozenberg 2022-07-12 12:45:58 +0300
  • 00634f8a09 Dropped required_option_missing as it is unused. Eyal Rozenberg 2022-07-11 16:10:12 +0300
  • 548d6196f5 Add clang format to changelog Jarryd Beck 2022-07-11 20:46:01 +1000
  • 30d97369f2 Fixes #341. Add a clang-format file Jarryd Beck 2022-07-11 07:47:35 +1000
  • 2e708c02c6 Fixes #345, fixes #346, regards #340: Put exceptions in a sub-namespace and renamed them accordingly. Eyal Rozenberg 2022-07-08 23:42:12 +0300
  • fbd79df66b Fixes #336 Jarryd Beck 2022-07-11 17:02:22 +1000
  • 6bb1e82b61 Add Vim modeline Jarryd Beck 2022-07-11 07:17:53 +1000
  • 513afbc6dc
    Fixes #340: namespace indentation unification (#350) Eyal Rozenberg 2022-07-11 00:00:50 +0300
  • 8d18c3ed0b
    Expanded .gitignore coverage. (#344) Eyal Rozenberg 2022-07-10 12:03:25 +0300
  • b0b84eebe6 Fixes #340: namespace indentation unification Eyal Rozenberg 2022-07-10 00:33:04 +0300
  • 3b763c6a38 WIP on issue #240: Multiple long option names / aliases Eyal Rozenberg 2022-07-09 21:49:15 +0300
  • 8b06717798 Expanded .gitignore coverage. Eyal Rozenberg 2022-07-08 10:36:16 +0300
  • 95ddf6641e Fixes jarro2783/cxxopts#338: Split the library into multiple header files - mostly one for each class. Eyal Rozenberg 2022-07-07 00:51:45 +0300
  • 7474a66ef6
    Clarify positional argument docs (#335) Matthew Limbinar 2022-07-03 19:55:17 -0400
  • d188e37eed Clarify docs Matthew Limber 2022-06-30 14:47:57 -0400
  • a70771ae89
    Fixed cmake install path in case of empty architecture (#322) Alexander Kiselyov 2022-06-16 00:34:14 +0300
  • 5f72b525c2 Add changelog note Jarryd Beck 2022-05-11 17:47:37 +1000
  • c59e0c132c
    Solve arguments() showing empty keys when only short-only option exists (#318) Long Deng 2022-05-11 15:44:25 +0800
  • 7a084a9bf4 WIP for fixing issue #158: Support for arguments whose value is "glued" to the argument on the command-line. Eyal Rozenberg 2022-05-04 14:41:48 +0300
  • ca98684077 Revert changes made to example.cpp in 4f7ab89 HuangZonghao 2022-05-03 04:19:42 -0400
  • 6c6deabc89 Add test cases for string parsing HuangZonghao 2022-05-03 04:15:49 -0400
  • f0f465b20f Add unmatched arguments to example Jarryd Beck 2022-05-03 06:21:12 +1000
  • fb50260381 Use constref for string, smart pointer for char array, and address compilation warnings of 95c7709 HuangZonghao 2022-05-02 14:32:39 -0400
  • 4f7ab890fa Update example code and readme for string parsing HuangZonghao 2022-04-30 23:53:42 -0400
  • 95c77095e3 Parse command line input wrapped in a string HuangZonghao 2022-04-29 00:45:45 -0400
  • 5c9932d972 Fix #327: Derive option_has_no_value_exception from OptionParseException Marco Koch 2022-04-05 08:50:59 +0200
  • 8185e6bb3a Remove unused variables Jarryd Beck 2022-03-26 12:19:36 +1100
  • 779c429b0e
    Added instructions to use cxxopts with tipi to INSTALL (#325) Yannic Staudt 2022-03-22 12:01:25 +0100
  • b1fe80e317 Added instructions to use cxxopts with tipi to INSTALL Yannic Staudt 2022-03-01 15:56:28 +0100
  • 4e208b95b7 Add a program function Jarryd Beck 2022-01-14 16:16:31 +1100
  • de6a7dd62b Fixed cmake install path in case of empty architecture Alexander Kiselyov 2022-01-05 01:56:19 +0300
  • ae697c042c add unit test for iterator and key of short-only option Long Deng 2021-12-09 11:47:38 +0800
  • c14de8a092 Solve arguments() showing empty keys when exsiting short-only option Long Deng 2021-12-03 16:20:32 +0800
  • ad2d1a6b5f
    Add iterator (#126) and easily print-out (#223) to ParseResult (#313) Long Deng 2021-11-09 15:49:58 +0800
  • c75f438422 fix build on gcc 4.8 Long Deng 2021-10-25 18:58:33 +0800
  • 2df139d7e5 Add iterator (#126) and easily print-out (#223) to ParseResult Long Deng 2021-10-25 16:24:17 +0800
  • c74846a891 Fix short options adding into unmatched v3.0.0 Jarryd Beck 2021-10-21 08:06:22 +1100
  • a150450486 Readme change for 3.0 Jarryd Beck 2021-10-21 07:50:58 +1100
  • e8b5befff8 Add changes for 3.0 release Jarryd Beck 2021-10-21 07:47:55 +1100
  • d2f0bbfed1 Add note about count with default Jarryd Beck 2021-10-21 07:37:07 +1100
  • 4a02ad94f4
    Include <optional> if possible to check if we can use the feature (#309) Nick Krichevsky 2021-10-09 22:01:47 -0400
  • 1bf360c037
    Include <optional> if possible to check if we can use the feature Nick Krichevsky 2021-10-05 10:56:58 -0400
  • 384b86fd8a
    Add missing include of <version> Nick Krichevsky 2021-10-05 10:56:58 -0400
  • c641241a87 Fixes to #204. Jarryd Beck 2021-07-31 10:39:30 +1000
  • 4b7fccb5f2 Allow empty string to be valid positional arguments Baojun Wang 2019-09-09 12:55:57 -0400
  • 1ff0da6401
    Add more compilers (#307) jarro2783 2021-10-09 15:52:52 +1100
  • 0a60743b82 Add more compilers Jarryd Beck 2021-10-09 13:09:10 +1100
  • 54489e4276
    Add the two available OS (#306) jarro2783 2021-10-09 12:48:44 +1100
  • c9c111ab75 Add the two available OS Jarryd Beck 2021-10-09 12:38:55 +1100
  • 4fcadd83a7
    Try workflow template jarro2783 2021-10-09 12:18:17 +1100
  • 7d99716319 Add workflow dispatch Jarryd Beck 2021-10-09 12:13:11 +1100
  • 946ebb6f83 Initial build action Jarryd Beck 2021-10-09 11:56:15 +1100
  • 70b3eb6be4 Test action Jarryd Beck 2021-10-09 11:56:15 +1100
  • d3aa51d555 Add dummy workflow Jarryd Beck 2021-10-09 12:00:13 +1100
  • 5eca8a3001
    Added CPack packaging, pkg-config and CMake version files. (#298) KOLANICH 2021-07-31 00:34:21 +0000
  • ed0c0ccd05 Added CPack packaging, pkg-config and CMake version files. Made the path to stuff architecture-independent, since the library is header-only. KOLANICH 2021-07-21 15:40:46 +0300
  • 2f532c47f4 Merge remote-tracking branch 'origin/master' ZrsWorkSpace 2021-07-07 15:36:57 +0800
  • 95a43acccf 我修改了cxxopts.hpp源文件的parse方法,使得长短选项都以-来匹配,之前--匹配的长选项不再适用,-开头的选项,不是长选项就是短选项,所以-su会被认定为长选项,并且修改了text文件夹options.cpp中的某些测试用例,基于’-‘能匹配长短选项,所以就不存在测试用例中的Allow_bad_short_syntax这样的一个情况,并且长短选项都可以用=赋值,比如"-a=20"是被允许的,之前的源文件这样的赋值操作是不匹配的 zrshonor 2021-07-07 15:05:02 +0800
  • e453d2c79d change zrshonor 2021-07-07 15:05:02 +0800
  • df229cff0d Fix integer parsing to be more general Jarryd Beck 2021-06-02 17:30:08 +1000
  • a20bda6179 Fix GCC version check for null deref Jarryd Beck 2021-06-01 17:38:41 +1000
  • 97a4d5511f
    Support options like -j5. (#286) RonxBulld 2021-05-06 06:46:40 +0800
  • 056a6281ac
    Fix empty option name in OptionException (#256) spmn 2021-05-06 01:45:15 +0300
  • c8287beb78
    Merge branch 'master' into master jarro2783 2021-05-06 08:38:14 +1000
  • a1fa5848e2 Add test: parameter follow option without space. RonxBulld 2021-05-05 17:29:53 +0800
  • 034c128562 Support the option value is attached after the option without a space in between. e.g. -j5 RonxBulld 2021-05-05 13:06:37 +0800
  • c04f8a5bb9
    Fully compatible with GCC4.8 compilation system. (#285) RonxBulld 2021-05-04 15:35:45 +0800
  • 0c2e2d1301 Rename NO_REGEX -> CXXOPTS_NO_REGEX RonxBulld 2021-04-29 10:09:51 +0800
  • d094fdfab0 Embed verification logic in applicator::apply. RonxBulld 2021-04-26 15:39:49 +0800
  • e6d0b30f37 In order to improve ease of use, a new usage is demonstrated in the proposals-demo/objectification. It looks like LLVM CommandLine2.0. RonxBulld 2021-04-26 15:08:24 +0800
  • 491cad95de Add virtual destructors to Option and Options. Option member is set to protected mode. RonxBulld 2021-04-26 15:05:25 +0800
  • 6a891e3d81 Fixed compilation errors when using gcc-4.8 and unicode mode. RonxBulld 2021-04-26 13:08:30 +0800
  • baf4fbca7e Add gcc4.8 stuff to travis file. RonxBulld 2021-04-26 12:45:16 +0800
  • fc167a0972 Using String instead of std::string in some places can cause regex::match syntax errors. RonxBulld 2021-04-25 01:12:56 +0800
  • 6e0870addd Extract compatibility codes and aggregate them together. RonxBulld 2021-04-25 00:50:17 +0800
  • a956948fdd If you use the clang compiler, disable the built-in lexer. RonxBulld 2021-04-23 10:20:12 +0800
  • 07c6eb5d42 When using GCC4.8, use manual lexical analysis instead of regular expressions. RonxBulld 2021-04-22 18:16:15 +0800
  • 174510285a
    -Wsuggest-override is not supported by gcc before 5.0 (#283) RonxBulld 2021-04-21 16:17:30 +0800
  • e01352fabe The `#pragma GCC diagnostic push' should be used before setting up the temporary environment. RonxBulld 2021-04-21 14:39:49 +0800
  • be35921b3f GCC prior to 5.0 should ignore not only -Wnon-virtual-dtor but also -Weffc++, otherwise non-virtual destructor problems will still be reported. RonxBulld 2021-04-21 14:37:58 +0800
  • 45ecbf5068 -Wsuggest-override is not supported by gcc before 5.0 RonxBulld 2021-04-21 10:06:51 +0800
  • dd45a0801c
    Rename BUILD to BUILD.bazel jarro2783 2021-02-20 15:12:07 +1100
  • aaa5e790b6 Rename variable, add to example Jarryd Beck 2021-02-15 08:33:56 +1100
  • 43ce03fdbd
    Improve formatting of help descriptions (#215) Wolfgang Gahr 2021-02-11 22:17:55 +0100
  • f34d603863 Fix missing override Jarryd Beck 2021-02-08 09:33:31 +1100
  • d10a9b5678 Upgrade GCC versions Jarryd Beck 2021-02-08 08:39:51 +1100
  • e862445ef3 Fix null dereference warning error Jarryd Beck 2021-01-23 14:08:56 +1100
  • ed85f04a1b
    clang-tidy stuff (#266) Rosen Penev 2021-01-18 22:05:09 -0800
  • 834fb9999b
    Ignore gcc-10 warning (#273) Benjamin Sergeant 2021-01-18 22:00:45 -0800
  • dc9a7728c0
    Fixing cmake developer warning (#274) jpr89 2021-01-19 00:55:23 -0500
  • f02bef64ff Fixing cmake developer warning Juan Ramos 2021-01-17 12:40:49 -0500