Commit Graph

685 Commits

Author SHA1 Message Date
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
a385d78919
Update README.md 2019-03-30 21:23:37 -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
d7d1880fe6 Added comment TODO for positional argument parsing 2019-03-30 20:06:03 -04:00
Pranav Srinivas Kumar
8e393bdda9 Fixed semantics issue b/w optional and positional. Saving positional arguments as a vector in ArgumentParser 2019-03-30 20:00:23 -04:00
Pranav Srinivas Kumar
965e4ad43c Merge branch 'master' of https://github.com/p-ranav/argparse 2019-03-30 19:57:52 -04:00
Pranav Srinivas Kumar
ccb268d2d1 Checking if argument is positional and saving this as a property in Argument object 2019-03-30 19:57:47 -04:00
Pranav Srinivas Kumar
e188902ad2
Update README.md 2019-03-30 19:49:51 -04:00
Pranav Srinivas Kumar
b1a67c2aad
Update README.md 2019-03-30 19:46:51 -04:00
Pranav Srinivas Kumar
fad02831be
Update README.md 2019-03-30 19:43:02 -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
0ceeeb353f
Update README.md 2019-03-30 18:45:54 -04:00
Pranav Srinivas Kumar
6220a3f341 Added README 2019-03-30 18:29:29 -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
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