Commit 34bfa386917c2bed3ffe979580b07064a5586936
Committed by
GitHub
1 parent
b1d8285d
Add copyright and copyright check (#424)
* Add copyright check * Remove old license message * Implement suggestions from code review
Showing
41 changed files
with
240 additions
and
46 deletions
CPPLINT.cfg
examples/callback_passthrough.cpp
| 1 | +// Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner | |
| 2 | +// under NSF AWARD 1414736 and by the respective contributors. | |
| 3 | +// All rights reserved. | |
| 4 | +// | |
| 5 | +// SPDX-License-Identifier: BSD-3-Clause | |
| 6 | + | |
| 1 | 7 | #include <CLI/CLI.hpp> |
| 2 | 8 | #include <iostream> |
| 3 | 9 | #include <string> | ... | ... |
examples/digit_args.cpp
examples/enum.cpp
| 1 | +// Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner | |
| 2 | +// under NSF AWARD 1414736 and by the respective contributors. | |
| 3 | +// All rights reserved. | |
| 4 | +// | |
| 5 | +// SPDX-License-Identifier: BSD-3-Clause | |
| 6 | + | |
| 1 | 7 | #include <CLI/CLI.hpp> |
| 2 | 8 | #include <iostream> |
| 3 | 9 | #include <map> | ... | ... |
examples/enum_ostream.cpp
| 1 | +// Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner | |
| 2 | +// under NSF AWARD 1414736 and by the respective contributors. | |
| 3 | +// All rights reserved. | |
| 4 | +// | |
| 5 | +// SPDX-License-Identifier: BSD-3-Clause | |
| 6 | + | |
| 1 | 7 | #include <CLI/CLI.hpp> |
| 2 | 8 | #include <iostream> |
| 3 | 9 | #include <map> | ... | ... |
examples/formatter.cpp
| 1 | +// Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner | |
| 2 | +// under NSF AWARD 1414736 and by the respective contributors. | |
| 3 | +// All rights reserved. | |
| 4 | +// | |
| 5 | +// SPDX-License-Identifier: BSD-3-Clause | |
| 6 | + | |
| 1 | 7 | #include <CLI/CLI.hpp> |
| 2 | 8 | #include <iostream> |
| 3 | 9 | #include <memory> | ... | ... |
examples/groups.cpp
| 1 | +// Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner | |
| 2 | +// under NSF AWARD 1414736 and by the respective contributors. | |
| 3 | +// All rights reserved. | |
| 4 | +// | |
| 5 | +// SPDX-License-Identifier: BSD-3-Clause | |
| 6 | + | |
| 1 | 7 | #include <CLI/CLI.hpp> |
| 2 | 8 | #include <CLI/Timer.hpp> |
| 3 | 9 | #include <iostream> | ... | ... |
examples/inter_argument_order.cpp
| 1 | +// Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner | |
| 2 | +// under NSF AWARD 1414736 and by the respective contributors. | |
| 3 | +// All rights reserved. | |
| 4 | +// | |
| 5 | +// SPDX-License-Identifier: BSD-3-Clause | |
| 6 | + | |
| 1 | 7 | #include <CLI/CLI.hpp> |
| 2 | 8 | #include <algorithm> |
| 3 | 9 | #include <iostream> | ... | ... |
examples/json.cpp
| 1 | +// Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner | |
| 2 | +// under NSF AWARD 1414736 and by the respective contributors. | |
| 3 | +// All rights reserved. | |
| 4 | +// | |
| 5 | +// SPDX-License-Identifier: BSD-3-Clause | |
| 6 | + | |
| 1 | 7 | #include <CLI/CLI.hpp> |
| 2 | 8 | #include <iostream> |
| 3 | 9 | #include <memory> | ... | ... |
examples/modhelp.cpp
| 1 | +// Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner | |
| 2 | +// under NSF AWARD 1414736 and by the respective contributors. | |
| 3 | +// All rights reserved. | |
| 4 | +// | |
| 5 | +// SPDX-License-Identifier: BSD-3-Clause | |
| 6 | + | |
| 1 | 7 | #include <CLI/CLI.hpp> |
| 2 | 8 | #include <iostream> |
| 3 | 9 | #include <string> | ... | ... |
examples/nested.cpp
examples/option_groups.cpp
| 1 | +// Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner | |
| 2 | +// under NSF AWARD 1414736 and by the respective contributors. | |
| 3 | +// All rights reserved. | |
| 4 | +// | |
| 5 | +// SPDX-License-Identifier: BSD-3-Clause | |
| 6 | + | |
| 1 | 7 | #include <CLI/CLI.hpp> |
| 2 | 8 | #include <iostream> |
| 3 | 9 | #include <string> | ... | ... |
examples/positional_arity.cpp
| 1 | +// Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner | |
| 2 | +// under NSF AWARD 1414736 and by the respective contributors. | |
| 3 | +// All rights reserved. | |
| 4 | +// | |
| 5 | +// SPDX-License-Identifier: BSD-3-Clause | |
| 6 | + | |
| 1 | 7 | #include <CLI/CLI.hpp> |
| 2 | 8 | #include <iostream> |
| 3 | 9 | #include <string> | ... | ... |
examples/positional_validation.cpp
| 1 | +// Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner | |
| 2 | +// under NSF AWARD 1414736 and by the respective contributors. | |
| 3 | +// All rights reserved. | |
| 4 | +// | |
| 5 | +// SPDX-License-Identifier: BSD-3-Clause | |
| 6 | + | |
| 1 | 7 | #include <CLI/CLI.hpp> |
| 2 | 8 | #include <iostream> |
| 3 | 9 | #include <string> | ... | ... |
examples/prefix_command.cpp
| 1 | +// Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner | |
| 2 | +// under NSF AWARD 1414736 and by the respective contributors. | |
| 3 | +// All rights reserved. | |
| 4 | +// | |
| 5 | +// SPDX-License-Identifier: BSD-3-Clause | |
| 6 | + | |
| 1 | 7 | #include <CLI/CLI.hpp> |
| 2 | 8 | #include <iostream> |
| 3 | 9 | #include <string> | ... | ... |
examples/ranges.cpp
| 1 | +// Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner | |
| 2 | +// under NSF AWARD 1414736 and by the respective contributors. | |
| 3 | +// All rights reserved. | |
| 4 | +// | |
| 5 | +// SPDX-License-Identifier: BSD-3-Clause | |
| 6 | + | |
| 1 | 7 | #include <CLI/CLI.hpp> |
| 2 | 8 | #include <iostream> |
| 3 | 9 | #include <vector> | ... | ... |
examples/retired.cpp
| 1 | +// Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner | |
| 2 | +// under NSF AWARD 1414736 and by the respective contributors. | |
| 3 | +// All rights reserved. | |
| 4 | +// | |
| 5 | +// SPDX-License-Identifier: BSD-3-Clause | |
| 6 | + | |
| 1 | 7 | #include <CLI/CLI.hpp> |
| 2 | 8 | #include <iostream> |
| 3 | 9 | #include <utility> | ... | ... |
examples/shapes.cpp
| 1 | +// Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner | |
| 2 | +// under NSF AWARD 1414736 and by the respective contributors. | |
| 3 | +// All rights reserved. | |
| 4 | +// | |
| 5 | +// SPDX-License-Identifier: BSD-3-Clause | |
| 6 | + | |
| 1 | 7 | #include <CLI/CLI.hpp> |
| 2 | 8 | #include <iostream> |
| 3 | 9 | #include <vector> | ... | ... |
examples/simple.cpp
| 1 | +// Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner | |
| 2 | +// under NSF AWARD 1414736 and by the respective contributors. | |
| 3 | +// All rights reserved. | |
| 4 | +// | |
| 5 | +// SPDX-License-Identifier: BSD-3-Clause | |
| 6 | + | |
| 1 | 7 | #include <CLI/CLI.hpp> |
| 2 | 8 | #include <iostream> |
| 3 | 9 | #include <string> | ... | ... |
examples/subcom_help.cpp
| 1 | +// Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner | |
| 2 | +// under NSF AWARD 1414736 and by the respective contributors. | |
| 3 | +// All rights reserved. | |
| 4 | +// | |
| 5 | +// SPDX-License-Identifier: BSD-3-Clause | |
| 6 | + | |
| 1 | 7 | #include <CLI/CLI.hpp> |
| 2 | 8 | #include <iostream> |
| 3 | 9 | #include <string> | ... | ... |
examples/subcom_in_files/subcommand_a.cpp
| 1 | +// Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner | |
| 2 | +// under NSF AWARD 1414736 and by the respective contributors. | |
| 3 | +// All rights reserved. | |
| 4 | +// | |
| 5 | +// SPDX-License-Identifier: BSD-3-Clause | |
| 6 | + | |
| 1 | 7 | #include "subcommand_a.hpp" |
| 2 | 8 | #include <iostream> |
| 3 | 9 | #include <memory> | ... | ... |
examples/subcom_in_files/subcommand_a.hpp
examples/subcom_in_files/subcommand_main.cpp
| 1 | +// Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner | |
| 2 | +// under NSF AWARD 1414736 and by the respective contributors. | |
| 3 | +// All rights reserved. | |
| 4 | +// | |
| 5 | +// SPDX-License-Identifier: BSD-3-Clause | |
| 6 | + | |
| 1 | 7 | #include "subcommand_a.hpp" |
| 2 | 8 | #include <CLI/CLI.hpp> |
| 3 | 9 | ... | ... |
examples/subcom_partitioned.cpp
| 1 | +// Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner | |
| 2 | +// under NSF AWARD 1414736 and by the respective contributors. | |
| 3 | +// All rights reserved. | |
| 4 | +// | |
| 5 | +// SPDX-License-Identifier: BSD-3-Clause | |
| 6 | + | |
| 1 | 7 | #include <CLI/CLI.hpp> |
| 2 | 8 | #include <CLI/Timer.hpp> |
| 3 | 9 | #include <iostream> | ... | ... |
examples/subcommands.cpp
| 1 | +// Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner | |
| 2 | +// under NSF AWARD 1414736 and by the respective contributors. | |
| 3 | +// All rights reserved. | |
| 4 | +// | |
| 5 | +// SPDX-License-Identifier: BSD-3-Clause | |
| 6 | + | |
| 1 | 7 | #include <CLI/CLI.hpp> |
| 2 | 8 | #include <iostream> |
| 3 | 9 | #include <string> | ... | ... |
examples/validators.cpp
| 1 | +// Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner | |
| 2 | +// under NSF AWARD 1414736 and by the respective contributors. | |
| 3 | +// All rights reserved. | |
| 4 | +// | |
| 5 | +// SPDX-License-Identifier: BSD-3-Clause | |
| 6 | + | |
| 1 | 7 | #include <CLI/CLI.hpp> |
| 2 | 8 | #include <iostream> |
| 3 | 9 | #include <string> | ... | ... |
include/CLI/App.hpp
| 1 | -#pragma once | |
| 1 | +// Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner | |
| 2 | +// under NSF AWARD 1414736 and by the respective contributors. | |
| 3 | +// All rights reserved. | |
| 4 | +// | |
| 5 | +// SPDX-License-Identifier: BSD-3-Clause | |
| 2 | 6 | |
| 3 | -// Distributed under the 3-Clause BSD License. See accompanying | |
| 4 | -// file LICENSE or https://github.com/CLIUtils/CLI11 for details. | |
| 7 | +#pragma once | |
| 5 | 8 | |
| 6 | 9 | #include <algorithm> |
| 7 | 10 | #include <cstdint> | ... | ... |
include/CLI/CLI.hpp
| 1 | -#pragma once | |
| 1 | +// Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner | |
| 2 | +// under NSF AWARD 1414736 and by the respective contributors. | |
| 3 | +// All rights reserved. | |
| 4 | +// | |
| 5 | +// SPDX-License-Identifier: BSD-3-Clause | |
| 2 | 6 | |
| 3 | -// Distributed under the 3-Clause BSD License. See accompanying | |
| 4 | -// file LICENSE or https://github.com/CLIUtils/CLI11 for details. | |
| 7 | +#pragma once | |
| 5 | 8 | |
| 6 | 9 | // CLI Library includes |
| 7 | 10 | // Order is important for combiner script | ... | ... |
include/CLI/Config.hpp
| 1 | -#pragma once | |
| 1 | +// Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner | |
| 2 | +// under NSF AWARD 1414736 and by the respective contributors. | |
| 3 | +// All rights reserved. | |
| 4 | +// | |
| 5 | +// SPDX-License-Identifier: BSD-3-Clause | |
| 2 | 6 | |
| 3 | -// Distributed under the 3-Clause BSD License. See accompanying | |
| 4 | -// file LICENSE or https://github.com/CLIUtils/CLI11 for details. | |
| 7 | +#pragma once | |
| 5 | 8 | |
| 6 | 9 | #include <algorithm> |
| 7 | 10 | #include <fstream> | ... | ... |
include/CLI/ConfigFwd.hpp
| 1 | -#pragma once | |
| 1 | +// Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner | |
| 2 | +// under NSF AWARD 1414736 and by the respective contributors. | |
| 3 | +// All rights reserved. | |
| 4 | +// | |
| 5 | +// SPDX-License-Identifier: BSD-3-Clause | |
| 2 | 6 | |
| 3 | -// Distributed under the 3-Clause BSD License. See accompanying | |
| 4 | -// file LICENSE or https://github.com/CLIUtils/CLI11 for details. | |
| 7 | +#pragma once | |
| 5 | 8 | |
| 6 | 9 | #include <algorithm> |
| 7 | 10 | #include <fstream> | ... | ... |
include/CLI/Error.hpp
| 1 | -#pragma once | |
| 1 | +// Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner | |
| 2 | +// under NSF AWARD 1414736 and by the respective contributors. | |
| 3 | +// All rights reserved. | |
| 4 | +// | |
| 5 | +// SPDX-License-Identifier: BSD-3-Clause | |
| 2 | 6 | |
| 3 | -// Distributed under the 3-Clause BSD License. See accompanying | |
| 4 | -// file LICENSE or https://github.com/CLIUtils/CLI11 for details. | |
| 7 | +#pragma once | |
| 5 | 8 | |
| 6 | 9 | #include <exception> |
| 7 | 10 | #include <stdexcept> | ... | ... |
include/CLI/Formatter.hpp
| 1 | -#pragma once | |
| 1 | +// Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner | |
| 2 | +// under NSF AWARD 1414736 and by the respective contributors. | |
| 3 | +// All rights reserved. | |
| 4 | +// | |
| 5 | +// SPDX-License-Identifier: BSD-3-Clause | |
| 2 | 6 | |
| 3 | -// Distributed under the 3-Clause BSD License. See accompanying | |
| 4 | -// file LICENSE or https://github.com/CLIUtils/CLI11 for details. | |
| 7 | +#pragma once | |
| 5 | 8 | |
| 6 | 9 | #include <algorithm> |
| 7 | 10 | #include <string> | ... | ... |
include/CLI/FormatterFwd.hpp
| 1 | -#pragma once | |
| 1 | +// Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner | |
| 2 | +// under NSF AWARD 1414736 and by the respective contributors. | |
| 3 | +// All rights reserved. | |
| 4 | +// | |
| 5 | +// SPDX-License-Identifier: BSD-3-Clause | |
| 2 | 6 | |
| 3 | -// Distributed under the 3-Clause BSD License. See accompanying | |
| 4 | -// file LICENSE or https://github.com/CLIUtils/CLI11 for details. | |
| 7 | +#pragma once | |
| 5 | 8 | |
| 6 | 9 | #include <map> |
| 7 | 10 | #include <string> | ... | ... |
include/CLI/Macros.hpp
| 1 | -#pragma once | |
| 1 | +// Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner | |
| 2 | +// under NSF AWARD 1414736 and by the respective contributors. | |
| 3 | +// All rights reserved. | |
| 4 | +// | |
| 5 | +// SPDX-License-Identifier: BSD-3-Clause | |
| 2 | 6 | |
| 3 | -// Distributed under the 3-Clause BSD License. See accompanying | |
| 4 | -// file LICENSE or https://github.com/CLIUtils/CLI11 for details. | |
| 7 | +#pragma once | |
| 5 | 8 | |
| 6 | 9 | // [CLI11:verbatim] |
| 7 | 10 | ... | ... |
include/CLI/Option.hpp
| 1 | -#pragma once | |
| 1 | +// Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner | |
| 2 | +// under NSF AWARD 1414736 and by the respective contributors. | |
| 3 | +// All rights reserved. | |
| 4 | +// | |
| 5 | +// SPDX-License-Identifier: BSD-3-Clause | |
| 2 | 6 | |
| 3 | -// Distributed under the 3-Clause BSD License. See accompanying | |
| 4 | -// file LICENSE or https://github.com/CLIUtils/CLI11 for details. | |
| 7 | +#pragma once | |
| 5 | 8 | |
| 6 | 9 | #include <algorithm> |
| 7 | 10 | #include <functional> | ... | ... |
include/CLI/Split.hpp
| 1 | -#pragma once | |
| 1 | +// Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner | |
| 2 | +// under NSF AWARD 1414736 and by the respective contributors. | |
| 3 | +// All rights reserved. | |
| 4 | +// | |
| 5 | +// SPDX-License-Identifier: BSD-3-Clause | |
| 2 | 6 | |
| 3 | -// Distributed under the 3-Clause BSD License. See accompanying | |
| 4 | -// file LICENSE or https://github.com/CLIUtils/CLI11 for details. | |
| 7 | +#pragma once | |
| 5 | 8 | |
| 6 | 9 | #include <string> |
| 7 | 10 | #include <tuple> | ... | ... |
include/CLI/StringTools.hpp
| 1 | -#pragma once | |
| 1 | +// Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner | |
| 2 | +// under NSF AWARD 1414736 and by the respective contributors. | |
| 3 | +// All rights reserved. | |
| 4 | +// | |
| 5 | +// SPDX-License-Identifier: BSD-3-Clause | |
| 2 | 6 | |
| 3 | -// Distributed under the 3-Clause BSD License. See accompanying | |
| 4 | -// file LICENSE or https://github.com/CLIUtils/CLI11 for details. | |
| 7 | +#pragma once | |
| 5 | 8 | |
| 6 | 9 | #include <algorithm> |
| 7 | 10 | #include <iomanip> | ... | ... |
include/CLI/Timer.hpp
| 1 | -#pragma once | |
| 1 | +// Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner | |
| 2 | +// under NSF AWARD 1414736 and by the respective contributors. | |
| 3 | +// All rights reserved. | |
| 4 | +// | |
| 5 | +// SPDX-License-Identifier: BSD-3-Clause | |
| 2 | 6 | |
| 3 | -// Distributed under the 3-Clause BSD License. See accompanying | |
| 4 | -// file LICENSE or https://github.com/CLIUtils/CLI11 for details. | |
| 7 | +#pragma once | |
| 5 | 8 | |
| 6 | 9 | // On GCC < 4.8, the following define is often missing. Due to the |
| 7 | 10 | // fact that this library only uses sleep_for, this should be safe | ... | ... |
include/CLI/TypeTools.hpp
| 1 | -#pragma once | |
| 1 | +// Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner | |
| 2 | +// under NSF AWARD 1414736 and by the respective contributors. | |
| 3 | +// All rights reserved. | |
| 4 | +// | |
| 5 | +// SPDX-License-Identifier: BSD-3-Clause | |
| 2 | 6 | |
| 3 | -// Distributed under the 3-Clause BSD License. See accompanying | |
| 4 | -// file LICENSE or https://github.com/CLIUtils/CLI11 for details. | |
| 7 | +#pragma once | |
| 5 | 8 | |
| 6 | 9 | #include "StringTools.hpp" |
| 7 | 10 | #include <cstdint> | ... | ... |
include/CLI/Validators.hpp
| 1 | -#pragma once | |
| 1 | +// Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner | |
| 2 | +// under NSF AWARD 1414736 and by the respective contributors. | |
| 3 | +// All rights reserved. | |
| 4 | +// | |
| 5 | +// SPDX-License-Identifier: BSD-3-Clause | |
| 2 | 6 | |
| 3 | -// Distributed under the 3-Clause BSD License. See accompanying | |
| 4 | -// file LICENSE or https://github.com/CLIUtils/CLI11 for details. | |
| 7 | +#pragma once | |
| 5 | 8 | |
| 6 | 9 | #include "CLI/Macros.hpp" |
| 7 | 10 | #include "CLI/StringTools.hpp" | ... | ... |
include/CLI/Version.hpp
| 1 | -#pragma once | |
| 1 | +// Copyright (c) 2017-2020, University of Cincinnati, developed by Henry Schreiner | |
| 2 | +// under NSF AWARD 1414736 and by the respective contributors. | |
| 3 | +// All rights reserved. | |
| 4 | +// | |
| 5 | +// SPDX-License-Identifier: BSD-3-Clause | |
| 2 | 6 | |
| 3 | -// Distributed under the 3-Clause BSD License. See accompanying | |
| 4 | -// file LICENSE or https://github.com/CLIUtils/CLI11 for details. | |
| 7 | +#pragma once | |
| 5 | 8 | |
| 6 | 9 | // [CLI11:verbatim] |
| 7 | 10 | ... | ... |