1
0
mirror of https://github.com/CLIUtils/CLI11.git synced 2025-05-01 21:23:52 +00:00
CLI11/tests/applications/system_args.cpp
Philip Top 9dfeefe2ba
update copyright date to 2024 (#971)
update copyright dates
2024-01-06 08:08:31 -08:00

23 lines
499 B
C++

// Copyright (c) 2017-2024, University of Cincinnati, developed by Henry Schreiner
// under NSF AWARD 1414736 and by the respective contributors.
// All rights reserved.
//
// SPDX-License-Identifier: BSD-3-Clause
#include <CLI/CLI.hpp>
#include <cstring>
int main(int argc, char **argv) {
if(argc != CLI::argc()) {
return -1;
}
for(int i = 0; i < argc; i++) {
if(std::strcmp(argv[i], CLI::argv()[i]) != 0) {
return i + 1;
}
}
return 0;
}