Commit Graph

201 Commits

Author SHA1 Message Date
Jarryd Beck
9e3f3115d2 Don't overwrite positional arguments.
Fixes #30. The positional arguments are not overwritten when they
have already been given on the command line.
2016-08-29 18:11:18 +10:00
Jarryd Beck
b0078c6540 don't need env 2016-08-28 13:10:12 +10:00
Jarryd Beck
c0750d0cde try osx again 2016-08-28 13:05:55 +10:00
Jarryd Beck
bef3e67cb8 Fix uninitialised m_next_positional
This fixes the runtime error in Travis Job 17.2.

The variable Options::m_next_positional was not initialised when no
positional parameters were set.
2016-08-26 20:13:49 +10:00
Jarryd Beck
7b26c50e59 add test with no options 2016-08-26 19:20:55 +10:00
Jarryd Beck
728da0e65a add some more tests 2016-08-26 19:09:40 +10:00
Jarryd Beck
2f86fb1de0 fix test 2016-08-26 18:58:28 +10:00
Jarryd Beck
b091ec31a1 remove osx, fix clang source/package 2016-08-26 18:36:24 +10:00
Jarryd Beck
5d29ed878a try building with libc++ 2016-08-26 18:26:34 +10:00
Jarryd Beck
53ebd933ad set the language correctly 2016-08-26 08:44:46 +10:00
Jarryd Beck
0c0e0391d9 fold string 2016-08-26 08:36:58 +10:00
Jarryd Beck
e1a071480c improve build 2016-08-26 08:34:25 +10:00
Jarryd Beck
5ac2dcc5f5 output on failure 2016-08-26 08:31:53 +10:00
Jarryd Beck
7f4dd15743 use the right compiler 2016-08-26 08:29:53 +10:00
Jarryd Beck
c6554ddc49 ignore built files 2016-08-26 08:26:42 +10:00
Jarryd Beck
37e09fb92c build tests in travis 2016-08-26 08:26:13 +10:00
Jarryd Beck
defb7c8d77 try osx build 2016-08-26 08:24:55 +10:00
Jarryd Beck
55bfe49aa0 options test 2016-08-26 08:22:04 +10:00
Jarryd Beck
003ba3253e we actually wanted to use trusty 2016-08-25 18:58:30 +10:00
Jarryd Beck
f413718c5f use precise on travis 2016-08-25 18:40:40 +10:00
Jarryd Beck
09d8d0b3c5 add build status to README 2016-08-25 18:36:32 +10:00
Jarryd Beck
ca9d4e4825 update cmake version 2016-08-25 18:35:22 +10:00
Jarryd Beck
435bc38eff add gitignore 2016-08-25 18:29:00 +10:00
Jarryd Beck
2d480c0228 add testing 2016-08-25 08:49:56 +10:00
Jarryd Beck
c51b8bbdee default and implicit options in readme
This closes issue #20.
2016-08-25 08:35:01 +10:00
Jarryd Beck
abab8ce325 I27 vector<string> doesn't parse
Reorder the `parse_value` functions so that the vector-specific
function can see all of the other specific parsers.
2016-07-05 08:29:20 +10:00
Jarryd Beck
21489b233d fix long line 2016-07-04 19:17:54 +10:00
Pavel Medvedev
2e157e9881 Skip empty lines in option groups help
Also use single character \n for end of line instead of string literal.
2016-07-01 00:57:59 +03:00
Kevin Brightwell
774d455dc7 Update CMakeLists to be more configurable
* Add cxxopts.hpp as a source file to executable
* Add msvc options for compiling
* Add CXXOPTS_BUILD_EXAMPLES option to CMake build
  * This is helpful when using CMake's ExternalProject_add()
  * It is ON by default, but configurable from the command-line.
2016-06-15 20:32:32 -04:00
Jarryd Beck
7081d81890 add cstring for some compilers 2016-06-03 11:35:48 +10:00
jarro2783
ed28e72b86 Merge pull request #24 from nocnokneo/dont-count-default-values
Don't count default values
2016-05-28 13:27:00 +10:00
Taylor Braun-Jones
7eb1bfbec1 Don't count default values 2016-05-23 15:49:52 -04:00
jarro2783
6c946a413a Merge pull request #21 from nickbp/patch-1
Remove log output
2016-05-13 15:20:20 +10:00
jarro2783
652cbdbfa1 Merge pull request #22 from nocnokneo/patch-1
README.md: Fix compile errors in quick start example
2016-05-13 15:19:39 +10:00
Taylor Braun-Jones
00dc8b3018 README.md: Fix compile errors in quick start example 2016-05-12 18:06:13 -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
aec97a6f53 update readme 2016-01-28 07:26:10 +11:00
Jarryd Beck
5a7585026d Merge branch 'master' of github.com:jarro2783/cxxopts 2016-01-22 17:48:31 +11:00
Jarryd Beck
4a5d45faf7 note in readme about positional arguments 2016-01-22 17:46:22 +11:00
Jarryd Beck
81f1f440ed count arguments 2016-01-22 17:44:00 +11:00
Jarryd Beck
3ce8cbd1ae add support for -- 2016-01-22 17:43:20 +11:00
jarro2783
8d0ff87fe7 Fix some more formatting 2015-09-28 12:56:03 +10:00
jarro2783
4c3d1159cf Change headings to markdown 2015-09-28 12:54:46 +10:00
jarro2783
7d49500f54 Rename README to README.md 2015-09-28 12:53:26 +10:00
jarro2783
4b6cae9b8f add positional arguments to readme 2015-09-28 12:51:30 +10:00
Jarryd Beck
b2e7efe7f4 positional arguments parse into multiple options 2015-09-25 16:49:06 +10:00
jarro2783
8844335d40 Merge pull request #14 from yazevnul/master
Fix Clang -Wsign-conversion and -Wshorten-64-to-32 warnings.
2015-05-11 16:34:50 +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