help command

This commit is contained in:
ackimixs
2024-01-24 17:15:35 +01:00
parent d83ccff03d
commit d29216d18d
2 changed files with 23 additions and 5 deletions

View File

@@ -5,6 +5,15 @@
int main(int argc, char *argv[])
{
for (int i = 0; i < argc; i++) {
if (std::string(argv[i]) == "--help")
{
std::cout << "Usage: " << argv[0] << " <directory>" << std::endl;
std::cout << "directory: The directory containing the calibration images." << std::endl;
return 0;
}
}
if (argc < 2) {
std::cout << "Usage: " << argv[0] << " <directory>" << std::endl;
return 1;