fix verbose mode

This commit is contained in:
2025-08-20 16:43:54 +02:00
parent ddba89ee60
commit 64e027a391

View File

@ -6,7 +6,7 @@
/* By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ */ /* By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2025/04/26 17:01:53 by tomoron #+# #+# */ /* Created: 2025/04/26 17:01:53 by tomoron #+# #+# */
/* Updated: 2025/08/20 15:58:13 by tomoron ### ########.fr */ /* Updated: 2025/08/20 16:42:02 by tomoron ### ########.fr */
/* */ /* */
/* ************************************************************************** */ /* ************************************************************************** */
#include "includes/ft_ping.h" #include "includes/ft_ping.h"
@ -133,6 +133,9 @@ int parse_args(int argc, char **argv, t_settings *set)
set->ttl = get_set_int(optarg, set); set->ttl = get_set_int(optarg, set);
set->setTtl = 1; set->setTtl = 1;
break; break;
case 'v':
set->verbose = 1;
break;
case 'h': case 'h':
case '?': case '?':
show_help(set); show_help(set);