Commit 6cc757f769ba72261860f5bd3f47e1cc197124a3
Committed by
Henry Schreiner
1 parent
b856c0ba
Fix includes in examples (#407)
* Fix includes in examples * Fix order * Align with other subcommand files Co-authored-by: Henry Schreiner <HenrySchreinerIII@gmail.com>
Showing
22 changed files
with
61 additions
and
31 deletions
examples/callback_passthrough.cpp
examples/enum.cpp
examples/enum_ostream.cpp
examples/formatter.cpp
examples/groups.cpp
examples/json.cpp
| 1 | 1 | #include <CLI/CLI.hpp> |
| 2 | +#include <iostream> | |
| 3 | +#include <memory> | |
| 2 | 4 | #include <nlohmann/json.hpp> |
| 5 | +#include <string> | |
| 6 | +#include <vector> | |
| 3 | 7 | |
| 4 | 8 | // This example is only built on GCC 7 on Travis due to mismatch in stdlib |
| 5 | 9 | // for clang (CLI11 is forgiving about mismatches, json.hpp is not) | ... | ... |
examples/modhelp.cpp
examples/option_groups.cpp
examples/positional_arity.cpp
examples/positional_validation.cpp
examples/prefix_command.cpp
examples/ranges.cpp
examples/retired.cpp
examples/shapes.cpp
examples/simple.cpp
examples/subcom_help.cpp
examples/subcom_in_files/subcommand_a.cpp
| 1 | -// =================================================================== | |
| 2 | -// subcommand_a.cpp | |
| 3 | -// =================================================================== | |
| 4 | - | |
| 5 | 1 | #include "subcommand_a.hpp" |
| 2 | +#include <iostream> | |
| 3 | +#include <memory> | |
| 6 | 4 | |
| 7 | 5 | /// Set up a subcommand and capture a shared_ptr to a struct that holds all its options. |
| 8 | 6 | /// The variables of the struct are bound to the CLI options. | ... | ... |
examples/subcom_in_files/subcommand_a.hpp
| 1 | 1 | #pragma once |
| 2 | -// =================================================================== | |
| 3 | -// subcommand_a.hpp | |
| 4 | -// =================================================================== | |
| 5 | 2 | |
| 6 | -#include "CLI/CLI.hpp" | |
| 7 | -#include <memory> | |
| 3 | +#include <CLI/CLI.hpp> | |
| 8 | 4 | #include <string> |
| 9 | 5 | |
| 10 | 6 | /// Collection of all options of Subcommand A. | ... | ... |
examples/subcom_in_files/subcommand_main.cpp
examples/subcom_partitioned.cpp
examples/subcommands.cpp