mirror of
https://github.com/KeqingMoe/argparse.git
synced 2025-07-03 22:54:39 +00:00
Closes #73
This commit is contained in:
parent
9bbd58c6ad
commit
33101e7972
@ -20,5 +20,5 @@ install(TARGETS argparse EXPORT argparseConfig)
|
|||||||
install(EXPORT argparseConfig
|
install(EXPORT argparseConfig
|
||||||
NAMESPACE argparse::
|
NAMESPACE argparse::
|
||||||
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/argparse)
|
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/argparse)
|
||||||
install(FILES ${CMAKE_CURRENT_LIST_DIR}/include/argparse.hpp
|
install(FILES ${CMAKE_CURRENT_LIST_DIR}/include/argparse/argparse.hpp
|
||||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/argparse)
|
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/argparse)
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
Simply include argparse.hpp and you're good to go.
|
Simply include argparse.hpp and you're good to go.
|
||||||
|
|
||||||
```cpp
|
```cpp
|
||||||
#include <argparse.hpp>
|
#include <argparse/argparse.hpp>
|
||||||
```
|
```
|
||||||
|
|
||||||
To start parsing command-line arguments, create an ```ArgumentParser```.
|
To start parsing command-line arguments, create an ```ArgumentParser```.
|
||||||
@ -44,7 +44,7 @@ Argparse supports a variety of argument types including positional, optional, an
|
|||||||
Here's an example of a ***positional argument***:
|
Here's an example of a ***positional argument***:
|
||||||
|
|
||||||
```cpp
|
```cpp
|
||||||
#include <argparse.hpp>
|
#include <argparse/argparse.hpp>
|
||||||
|
|
||||||
int main(int argc, char *argv[]) {
|
int main(int argc, char *argv[]) {
|
||||||
argparse::ArgumentParser program("program name");
|
argparse::ArgumentParser program("program name");
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#include <doctest.hpp>
|
#include <doctest.hpp>
|
||||||
#include <argparse.hpp>
|
#include <argparse/argparse.hpp>
|
||||||
|
|
||||||
using doctest::test_suite;
|
using doctest::test_suite;
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#include <doctest.hpp>
|
#include <doctest.hpp>
|
||||||
#include <argparse.hpp>
|
#include <argparse/argparse.hpp>
|
||||||
#include <test_utility.hpp>
|
#include <test_utility.hpp>
|
||||||
|
|
||||||
using doctest::test_suite;
|
using doctest::test_suite;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#include <doctest.hpp>
|
#include <doctest.hpp>
|
||||||
#include <argparse.hpp>
|
#include <argparse/argparse.hpp>
|
||||||
#include <test_utility.hpp>
|
#include <test_utility.hpp>
|
||||||
|
|
||||||
using doctest::test_suite;
|
using doctest::test_suite;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#include <doctest.hpp>
|
#include <doctest.hpp>
|
||||||
#include <argparse.hpp>
|
#include <argparse/argparse.hpp>
|
||||||
|
|
||||||
using doctest::test_suite;
|
using doctest::test_suite;
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#include <doctest.hpp>
|
#include <doctest.hpp>
|
||||||
#include <argparse.hpp>
|
#include <argparse/argparse.hpp>
|
||||||
|
|
||||||
using doctest::test_suite;
|
using doctest::test_suite;
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#include <doctest.hpp>
|
#include <doctest.hpp>
|
||||||
#include <argparse.hpp>
|
#include <argparse/argparse.hpp>
|
||||||
|
|
||||||
using doctest::test_suite;
|
using doctest::test_suite;
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#include <doctest.hpp>
|
#include <doctest.hpp>
|
||||||
#include <argparse.hpp>
|
#include <argparse/argparse.hpp>
|
||||||
|
|
||||||
using doctest::test_suite;
|
using doctest::test_suite;
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#include <doctest.hpp>
|
#include <doctest.hpp>
|
||||||
#include <argparse.hpp>
|
#include <argparse/argparse.hpp>
|
||||||
|
|
||||||
using doctest::test_suite;
|
using doctest::test_suite;
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#include <doctest.hpp>
|
#include <doctest.hpp>
|
||||||
#include <argparse.hpp>
|
#include <argparse/argparse.hpp>
|
||||||
|
|
||||||
using doctest::test_suite;
|
using doctest::test_suite;
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#include <doctest.hpp>
|
#include <doctest.hpp>
|
||||||
#include <argparse.hpp>
|
#include <argparse/argparse.hpp>
|
||||||
|
|
||||||
using doctest::test_suite;
|
using doctest::test_suite;
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#include <doctest.hpp>
|
#include <doctest.hpp>
|
||||||
#include <argparse.hpp>
|
#include <argparse/argparse.hpp>
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
|
|
||||||
using doctest::test_suite;
|
using doctest::test_suite;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#include <doctest.hpp>
|
#include <doctest.hpp>
|
||||||
#include <argparse.hpp>
|
#include <argparse/argparse.hpp>
|
||||||
|
|
||||||
using doctest::test_suite;
|
using doctest::test_suite;
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include <argparse.hpp>
|
#include <argparse/argparse.hpp>
|
||||||
#include <doctest.hpp>
|
#include <doctest.hpp>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include <argparse.hpp>
|
#include <argparse/argparse.hpp>
|
||||||
#include <doctest.hpp>
|
#include <doctest.hpp>
|
||||||
|
|
||||||
using doctest::test_suite;
|
using doctest::test_suite;
|
||||||
|
Loading…
Reference in New Issue
Block a user