Files
p-ranav-argparse/test
Sean Robinson 3efd045ea9 Add ArgumentParser.is_used to discern user-supplied values from defaults
.present returns std::nullopt if the optional argument is not given by the
user -- as long as a .default_value is not defined.  With a .default_value,
.present cannot be used to determine if a value is user-provided or the
default.

.is_used fills that role and only returns true if the argument was passed
by the user.

Signed-off-by: Sean Robinson <sean.robinson@scottsdalecc.edu>
2021-04-07 14:09:10 -07:00
..
2019-04-01 22:01:40 -04:00
2019-11-21 09:08:49 -06:00
2019-04-01 22:03:59 -04:00
2020-05-08 14:35:05 -05:00
2020-05-08 14:35:05 -05:00
2020-05-08 14:35:05 -05:00
2020-05-08 14:35:05 -05:00
2020-05-08 14:35:05 -05:00
2020-05-08 14:35:05 -05:00
2020-05-08 14:35:05 -05:00
2020-05-08 14:35:05 -05:00
2020-05-08 14:35:05 -05:00
2020-05-08 14:35:05 -05:00
2020-05-08 14:35:05 -05:00
2020-05-08 14:35:05 -05:00
2019-05-12 17:17:21 +02:00
2020-05-08 14:35:05 -05:00

Argparse Tests

Linux

$ mkdir build
$ cd build
$ cmake ../.
$ make
$ ./tests

Windows

  1. Generate Visual Studio solution
$ mkdir build
$ cd build
$ cmake ../. -G "Visual Studio 15 2017"
  1. Open ARGPARSE.sln
  2. Build tests in RELEASE | x64
  3. Run tests.exe