Commit Graph

519 Commits

Author SHA1 Message Date
Pranav Srinivas Kumar
055cfbdb7d Unit tests for parsing vector of arguments 2019-03-30 17:11:24 -04:00
Pranav Srinivas Kumar
c3e6d7e0cf Added visual studio gitignore 2019-03-30 16:59:57 -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
3a07b7e141 Removed old parse_args. Added default function for Argument.mAction 2019-03-30 11:27:26 -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
bacc8dc39b Added member to store raw value in Argument 2019-03-30 11:16:28 -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
Pranav Srinivas Kumar
11e2b43086 Added header file; no contents yet 2019-03-29 18:42:40 -04:00
Pranav Srinivas Kumar
0786d9ca82 Added LICENSE 2019-03-29 18:41:37 -04:00