Pranav Srinivas Kumar
|
2143c7140b
|
Minor update to positional argument test
|
2019-04-01 21:44:15 -04:00 |
|
Pranav Srinivas Kumar
|
20a67c21a9
|
Removed debug print
|
2019-04-01 20:59:22 -04:00 |
|
Pranav Srinivas Kumar
|
cc009e347b
|
Added license header
|
2019-04-01 20:58:59 -04:00 |
|
Pranav Srinivas Kumar
|
9037b08454
|
Added support for parent parsers. Some basic unit tests
|
2019-04-01 20:41:14 -04:00 |
|
Pranav Srinivas Kumar
|
e5c3630eba
|
Checking if i < argc on edge case. New tests added
|
2019-04-01 20:06:54 -04:00 |
|
Pranav Srinivas Kumar
|
7df41b6267
|
Added interesting edge case in compound argument parsing
|
2019-03-31 22:06:34 -04:00 |
|
Pranav Srinivas Kumar
|
030676c2f1
|
Update README.md
|
2019-03-31 21:27:52 -04:00 |
|
Pranav Srinivas Kumar
|
70c2fcfdf1
|
First bit of error checking - Cleaned up parse_args methods - Added parse_args_validate() method that checks if all positional arguments have been provided or not and prints help
|
2019-03-31 21:25:50 -04:00 |
|
Pranav Srinivas Kumar
|
6a4c92726b
|
Removed get_arguments API from ArgumentParser. Improved print_help
|
2019-03-31 20:28:22 -04:00 |
|
Pranav Srinivas Kumar
|
da1022c946
|
Update README.md
|
2019-03-31 18:15:15 -04:00 |
|
Pranav Srinivas Kumar
|
2d7d9e62eb
|
Added empty readme
|
2019-03-31 18:13:07 -04:00 |
|
Pranav Srinivas Kumar
|
6c598fcac0
|
Changed unit test to further test parser.get<std::list>()
|
2019-03-31 18:12:33 -04:00 |
|
Pranav Srinivas Kumar
|
eb341685bf
|
Added test to square a number
|
2019-03-31 16:59:45 -04:00 |
|
Pranav Srinivas Kumar
|
02f40c3721
|
Implemented Argument::operator== and Argument::operator!= with specializations for std::vector and std::list
|
2019-03-31 16:27:18 -04:00 |
|
Pranav Srinivas Kumar
|
28e084dfd8
|
Added an example that uses a reference catching in action lambda
|
2019-03-31 15:15:56 -04:00 |
|
Pranav Srinivas Kumar
|
953f7d9462
|
Renamed test filename
|
2019-03-31 15:05:47 -04:00 |
|
Pranav Srinivas Kumar
|
34c9ec8a97
|
Support for std::list in ArgumentParser
|
2019-03-31 14:48:58 -04:00 |
|
Pranav Srinivas Kumar
|
463aded164
|
Cleaned up unit tests. Added test to implement choices inside .action(...)
|
2019-03-31 13:01:09 -04:00 |
|
Pranav Srinivas Kumar
|
a9b504665f
|
Added some complex unit tests including toggle arguments, compound arguments and positional arguments
|
2019-03-31 11:03:25 -04:00 |
|
Pranav Srinivas Kumar
|
07cad7ac9e
|
Added support for compound arguments, e.g., ./main -aux foo bar
|
2019-03-31 10:27:33 -04:00 |
|
Pranav Srinivas Kumar
|
41009046f2
|
Added support for parsing optional arguments _while_ parsing some other variable length positional argument
|
2019-03-30 21:50:35 -04:00 |
|
Pranav Srinivas Kumar
|
f6f9b0302d
|
Implemented API and tests for programming implicit values in toggle arguments
|
2019-03-30 21:21:42 -04:00 |
|
Pranav Srinivas Kumar
|
996f7882ca
|
Implemented support for parsing both positional and optional arguments
|
2019-03-30 21:09:05 -04:00 |
|
Pranav Srinivas Kumar
|
2e1683d7cb
|
Default value is now just an std::any instead of a lambda function
|
2019-03-30 19:42:05 -04:00 |
|
Pranav Srinivas Kumar
|
b730100b29
|
Unit test to parse and construct a vector of objects of some class
|
2019-03-30 17:26:25 -04:00 |
|
Pranav Srinivas Kumar
|
055cfbdb7d
|
Unit tests for parsing vector of arguments
|
2019-03-30 17:11:24 -04:00 |
|
Pranav Srinivas Kumar
|
28556f6eeb
|
Updated .gitignore
|
2019-03-30 16:59:22 -04:00 |
|
Pranav Srinivas Kumar
|
01c678efd5
|
Unit test to parse a vector of ints
|
2019-03-30 16:58:50 -04:00 |
|
Pranav Srinivas Kumar
|
5c7653cb9e
|
More unit tests. Added overloaded parse_args method for testing purposes
|
2019-03-30 16:45:44 -04:00 |
|
Pranav Srinivas Kumar
|
72c11da1be
|
Updated unit test
|
2019-03-30 15:09:39 -04:00 |
|
Pranav Srinivas Kumar
|
057b1eaa52
|
Officially added first unit test with catch
|
2019-03-30 14:56:30 -04:00 |
|
Pranav Srinivas Kumar
|
717e6aafdb
|
Using enable_if and template specializations to deal with parser.get<vector<T>>(..)
|
2019-03-30 13:47:59 -04:00 |
|
Pranav Srinivas Kumar
|
16e3f58ce9
|
Added support for list of arguments per parameter. Added nargs method
|
2019-03-30 12:58:28 -04:00 |
|
Pranav Srinivas Kumar
|
57778cb3a6
|
Fixed build
|
2019-03-30 11:39:36 -04:00 |
|
Pranav Srinivas Kumar
|
bb06497e88
|
Added std map in argparser to keep a dictionary of arguments by name. Faster checking when calling parse_args
|
2019-03-30 11:26:46 -04:00 |
|
Pranav Srinivas Kumar
|
a06308f673
|
First pass implementation of a naive argument parser. API is shaping up
|
2019-03-30 10:50:51 -04:00 |
|
Pranav Srinivas Kumar
|
2539bc33ce
|
Updated CMakeLists.txt - works with VS2017 and g++-8. Added catch testing
|
2019-03-30 10:17:10 -04:00 |
|
Pranav Srinivas Kumar
|
a8ede10d84
|
Added CMake file to build tests
|
2019-03-30 10:11:22 -04:00 |
|
Pranav Srinivas Kumar
|
424b22aa6a
|
First sketch of the ArgumentParser class
|
2019-03-30 10:04:35 -04:00 |
|