Taylor Braun-Jones
dd069b6893
Add support for MSVC 2013 Update 5 or newer
...
Use the CMake WriteCompilerDetectionHeader module to add generate a
header with compatibility macros.
- For static constants, use `const` instead of `constexpr`
- Drop `noexcept` if not supported by the compiler
- Use ASCII string literals if unicode literals are not supported
and replace unicode opening/closing single quotes with ASCII
backticks.
2016-05-23 17:05:14 -04:00
Taylor Braun-Jones
f55b63e258
Add missing string.h header required for strcmp
2016-05-23 15:32:27 -04:00
Nicholas Parker
ff3798f25c
Remove log output
...
Looked like it was left over from something? Saw it when testing "--some-int-val string"
2016-04-30 09:24:04 -07:00
Jarryd Beck
3ce8cbd1ae
add support for --
2016-01-22 17:43:20 +11:00
Jarryd Beck
b2e7efe7f4
positional arguments parse into multiple options
2015-09-25 16:49:06 +10:00
Kostya Bazhanov
9205d9093b
Disable -Wnon-virtual-dtor warning for GCC and Clang.
2015-04-23 22:05:19 +03:00
Kostya Bazhanov
9c59bb25ff
Fix Clang -Wsign-conversion and -Wshorten-64-to-32 warnings.
2015-04-18 21:50:12 +03:00
Kostya Bazhanov
2e9aab5cd0
Remove trailing spaces.
2015-04-18 21:43:37 +03:00
Baptiste Wicht
7611711651
Better support for spaces
...
This fixes support for options such as --file="folder with spaces/file".
2015-02-13 10:55:26 +01:00
Nagy Zsolt
44de7726f8
Fix remaining character check
2015-01-23 18:25:17 +01:00
Jarryd Beck
2144fbcc58
comment about Unicode
2014-11-08 15:30:32 +11:00
Jarryd Beck
f62ebb9688
formatting, inline
2014-10-31 08:30:50 +11:00
Baptiste Wicht
5492f17969
Add some getter
...
* Get list of groups
* Get help details for groups
2014-10-30 18:14:08 +01:00
Jarryd Beck
f4c429390f
Merge remote-tracking branch 'remotes/origin/master'
...
Conflicts:
src/cxxopts.hpp
2014-10-30 08:56:29 +11:00
Baptiste Wicht
164095cc0c
Macro to disable RTTI
2014-10-29 17:52:30 +01:00
Baptiste Wicht
4e4e91c37d
Fix warnings
2014-10-29 17:35:42 +01:00
Baptiste Wicht
0639e086ea
Finalize help
2014-10-29 17:04:53 +01:00
Baptiste Wicht
9a2749f692
Merge branch 'master' into default_values
...
Conflicts:
src/cxxopts.hpp
src/example.cpp
2014-10-29 16:42:59 +01:00
Jarryd Beck
1a558d76bd
custom argument help
2014-10-29 12:35:05 +11:00
Baptiste Wicht
9642317b08
Fix implicit and short
2014-10-28 21:36:33 +01:00
Baptiste Wicht
32be452302
Fix compilation
2014-10-28 21:27:29 +01:00
Baptiste Wicht
cc65ebb4fc
Fix warning
2014-10-27 19:25:44 +01:00
Baptiste Wicht
65093e0432
Cleanup
2014-10-27 19:19:54 +01:00
Baptiste Wicht
387e51dc16
Merge branch 'master' into default_values
...
Conflicts:
src/cxxopts.hpp
2014-10-27 19:09:41 +01:00
Jarryd Beck
9509ca94f2
unicode
2014-10-27 16:45:13 +11:00
Jarryd Beck
9d1a4dfcdc
more icu::UnicodeString
2014-10-27 15:20:12 +11:00
Jarryd Beck
f514d7d71e
start converting to String for Unicode
2014-10-27 13:30:22 +11:00
jarro2783
0cd24a7e6b
Merge pull request #7 from wichtounet/space_between_groups
...
Add an eol between each option groups
2014-10-27 10:59:41 +11:00
Baptiste Wicht
456ea951ab
Add support for implicit values
2014-10-26 22:05:24 +01:00
Baptiste Wicht
b343ad9855
Make the model more powerful
2014-10-26 21:31:16 +01:00
Baptiste Wicht
7e8f2e0b26
Complete the help
2014-10-26 21:18:54 +01:00
Baptiste Wicht
22ab9836d4
Add basic support for default options
2014-10-26 21:01:18 +01:00
Baptiste Wicht
a525bb1eef
Add an eol between each option groups
2014-10-26 19:18:41 +01:00
Baptiste Wicht
63af78443b
Add support for alphanumeric options
2014-10-26 19:12:32 +01:00
Jarryd Beck
3f1220e3d8
help string
2014-10-17 11:59:40 +11:00
Jarryd Beck
9889637790
inline everything
2014-10-15 11:38:39 +11:00
Jarryd Beck
32ca8c5c7c
Merge branch 'untangle_includes' of https://github.com/DennisOSRM/cxxopts into untangle-includes
...
Conflicts:
src/cxxopts.hpp
2014-10-14 20:29:49 +11:00
Dennis Luxen
0fe22a5171
untangle includes
...
- order lexicographically
- include all used headers directly instead of implicit includes
- remove unused header
- move regex include into compile unit
2014-10-14 11:18:10 +02:00
Baptiste Wicht
3697050e62
Add include guards to cxxopts.hpp
2014-10-14 08:45:13 +02:00
Jarryd Beck
1d9ae57a92
parse groups
2014-10-14 16:59:54 +11:00
Jarryd Beck
239525bcf4
parse into value
2014-10-14 16:59:25 +11:00
Jarryd Beck
c8b22d113d
print usage
2014-10-14 13:29:30 +11:00
Jarryd Beck
2bf1060d0b
start option groups
2014-10-14 10:49:14 +11:00
Jarryd Beck
18ad3b1659
exception on parse error
2014-10-13 20:52:06 +11:00
Jarryd Beck
65c13302b4
put in place check for value error
2014-10-13 18:05:01 +11:00
Jarryd Beck
bd48ccfcbd
start help
2014-10-10 18:03:18 +11:00
Jarryd Beck
8c9249a8c6
reorganise
2014-10-10 17:29:49 +11:00
Jarryd Beck
d7271eda80
add vectors
2014-10-09 14:09:02 +11:00
Jarryd Beck
8701a5d7ca
parse positional arguments
2014-10-09 11:08:36 +11:00
Jarryd Beck
2a6e80ad64
remove boost dependency
2014-10-03 17:36:00 +10:00