diff options
| author | Dominik Kaiser | 2025-02-12 13:40:19 +0100 |
|---|---|---|
| committer | Dominik Kaiser | 2025-02-12 13:40:19 +0100 |
| commit | 195d8aa8ebdcb21a9b8cbf362879e53e7ef0c461 (patch) | |
| tree | 4625c5dd168771836fcf03a2a14c00d4d2926184 /ex06/main.cpp | |
| parent | 92a665752945aa7731ad51fa66ecac768064c51e (diff) | |
| download | cpp01-main.tar.gz cpp01-main.zip | |
Diffstat (limited to 'ex06/main.cpp')
| -rw-r--r-- | ex06/main.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/ex06/main.cpp b/ex06/main.cpp index 1180187..a8bdaba 100644 --- a/ex06/main.cpp +++ b/ex06/main.cpp @@ -6,19 +6,18 @@ /* By: dkaiser <dkaiser@student.42heilbronn.de +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2025/02/12 10:35:53 by dkaiser #+# #+# */ -/* Updated: 2025/02/12 11:35:27 by dkaiser ### ########.fr */ +/* Updated: 2025/02/12 13:32:01 by dkaiser ### ########.fr */ /* */ /* ************************************************************************** */ #include "Harl.hpp" -int main(void) +int main(int argc, char *argv[]) { Harl harl = Harl(); - harl.complain("DEBUG"); - harl.complain("INFO"); - harl.complain("WARNING"); - harl.complain("ERROR"); - harl.complain("Invalid Input"); + if (argc != 2) + return 1; + + harl.complain(argv[1]); } |
