Stephan van Veen
|
15f45c2054
|
Simplify get method
|
2019-05-12 15:21:11 +02:00 |
|
Stephan van Veen
|
84adf5b2df
|
Simplify creating of help option
|
2019-05-12 14:55:45 +02:00 |
|
Stephan van Veen
|
ecf8286c9e
|
Resolve template recursion in add_parents method
|
2019-05-12 14:55:45 +02:00 |
|
Stephan van Veen
|
3bd7b342f0
|
Add const
|
2019-05-12 14:55:45 +02:00 |
|
Stephan van Veen
|
e923cf2ac3
|
Invert if-condition to improve readability
|
2019-05-12 14:55:45 +02:00 |
|
Stephan van Veen
|
95746ae159
|
Put helper methods into anonymous namespace
|
2019-05-12 14:55:44 +02:00 |
|
Stephan van Veen
|
8dd508d4b6
|
Put error message into exception instead of std::cerr
|
2019-05-12 14:55:44 +02:00 |
|
Stephan van Veen
|
603e87ae69
|
Move validation logic into Argument class itself
|
2019-05-12 14:55:44 +02:00 |
|
Stephan van Veen
|
7c938b1f2b
|
Use stl algorithms instead of nested for loops
|
2019-05-12 14:55:44 +02:00 |
|
Stephan van Veen
|
a364f3f1e7
|
Remove code duplication
|
2019-05-11 18:46:55 +02:00 |
|
Pranav Srinivas Kumar
|
50f2df36aa
|
Merge pull request #13 from svanveen/fix/exceptions
Replaced exit(0) by std::runtime_error
|
2019-05-11 09:24:56 -04:00 |
|
Stephan van Veen
|
12ad27f9c3
|
Don't call print_help inside ArgumentParser
|
2019-05-11 13:11:49 +02:00 |
|
Stephan van Veen
|
42ff186743
|
Put error message into exception instead of printing
|
2019-05-11 12:51:56 +02:00 |
|
Stephan van Veen
|
3c65c5dcab
|
Add MACRO which calls exit(0) on any runtime_error in parse_args
|
2019-05-11 11:24:41 +02:00 |
|
Stephan van Veen
|
a0fa02503e
|
Throw std::runtime_error instead of calling exit(0)
|
2019-05-11 11:23:44 +02:00 |
|
Stephan van Veen
|
94e4458641
|
Make use of move semantics
|
2019-05-11 00:58:20 +02:00 |
|
Pranav Srinivas Kumar
|
16ef9d84e0
|
Merge pull request #12 from svanveen/feature/modernize
Modernize code
|
2019-05-10 17:59:55 -04:00 |
|
Stephan van Veen
|
b1c566b434
|
Prefer emplace_back over push_back
|
2019-05-10 19:11:43 +02:00 |
|
Stephan van Veen
|
6d3be1927c
|
Use new constructor of Argument in constructor of ArgumentParser
|
2019-05-10 17:20:12 +02:00 |
|
Stephan van Veen
|
10fab58969
|
Replace upsert method by std::map::insert_or_assign
|
2019-05-10 17:06:28 +02:00 |
|
Stephan van Veen
|
91cd2477de
|
Fix broken indentation
|
2019-05-09 20:31:10 +02:00 |
|
Stephan van Veen
|
2dc9121acf
|
Simplify type traits
|
2019-05-09 18:44:47 +02:00 |
|
Stephan van Veen
|
df21d07bd6
|
Prefer emplace_back over push_back
|
2019-05-09 18:44:46 +02:00 |
|
Stephan van Veen
|
bef90a8d4f
|
Make use of move semantics
|
2019-05-09 18:44:46 +02:00 |
|
Stephan van Veen
|
1eadf94438
|
Use empty() instead of size comparison
|
2019-05-09 18:44:46 +02:00 |
|
Stephan van Veen
|
d57b191f77
|
Use range based for loop
|
2019-05-09 18:44:46 +02:00 |
|
Stephan van Veen
|
89e4bb11ac
|
Use auto type for iterators
|
2019-05-09 18:44:46 +02:00 |
|
Stephan van Veen
|
328f1048da
|
Initialize mNames using
|
2019-05-09 18:44:46 +02:00 |
|
Stephan van Veen
|
d9bff3dc2b
|
Construct Argument using template pack of names
|
2019-05-09 18:44:46 +02:00 |
|
Stephan van Veen
|
8474147a7c
|
Use default constructor and non-static member initializers
|
2019-05-09 18:44:46 +02:00 |
|
Pranav Srinivas Kumar
|
f13f538f8c
|
Merge pull request #11 from Jackojc/fix_warnings
Fix some warnings
|
2019-05-07 19:09:19 -04:00 |
|
Jack Clarke
|
4448983ecf
|
fixed warnings
|
2019-05-07 17:04:48 +01:00 |
|
Pranav Srinivas Kumar
|
3ea4c79137
|
Fixes core dump on optional arg (issue #10)
|
2019-05-04 11:49:30 -04:00 |
|
Pranav Srinivas Kumar
|
374c70e7b3
|
Fixes issue #8
|
2019-05-01 20:13:10 -04:00 |
|
Pranav Srinivas Kumar
|
7c9f83c7e1
|
Fixes issue #9 where error message shows the small form of the argument even though the user enters the long version
|
2019-05-01 20:06:13 -04:00 |
|
Pranav Srinivas Kumar
|
4d98282e2f
|
Fixed formatting in error message (Issue #9)
|
2019-05-01 19:55:40 -04:00 |
|
Pranav Srinivas Kumar
|
a80b960ea3
|
Update README.md
|
2019-04-28 19:30:52 -04:00 |
|
Pranav Srinivas Kumar
|
f011fd35ff
|
Update README.md
|
2019-04-24 14:17:55 -04:00 |
|
Pranav Srinivas Kumar
|
16ef9d2de6
|
Merge pull request #7 from zhihaoy/fix-warn
Fix C4267 in MSVC
|
2019-04-23 20:25:30 -04:00 |
|
Zhihao Yuan
|
af7380f98b
|
Fix C4267 in MSVC
|
2019-04-23 18:28:15 -05:00 |
|
Pranav Srinivas Kumar
|
b35cee19e2
|
Update README.md
|
2019-04-19 21:09:17 -04:00 |
|
Pranav Srinivas Kumar
|
7022e7043c
|
Merge branch 'master' of https://github.com/p-ranav/argparse
|
2019-04-18 22:42:51 -04:00 |
|
Pranav Srinivas Kumar
|
88eca55b06
|
Fixes issue #6
|
2019-04-18 22:42:43 -04:00 |
|
Pranav Srinivas Kumar
|
f58e2577d0
|
Update README.md
|
2019-04-12 21:34:30 -04:00 |
|
Pranav Srinivas Kumar
|
45d8b1bc24
|
Update README.md
|
2019-04-12 21:33:43 -04:00 |
|
Pranav Srinivas Kumar
|
a5192878c1
|
Update CMakeLists.txt
|
2019-04-10 21:18:14 -04:00 |
|
Pranav Srinivas Kumar
|
0b1a5b71f8
|
Added conanfile
|
2019-04-10 20:54:57 -04:00 |
|
Pranav Srinivas Kumar
|
483e9f2a5a
|
Fixes issue #5
|
2019-04-10 07:33:46 -04:00 |
|
Pranav Srinivas Kumar
|
f3cd481bd4
|
Merge pull request #4 from SuperWig/cmake
Add root CMakeLists.txt
|
2019-04-10 07:19:21 -04:00 |
|
Daniel Marshall
|
07f09279ed
|
Add root CMakeLists.txt
|
2019-04-10 12:14:33 +01:00 |
|