add: parsing

This commit is contained in:
2025-11-18 07:44:42 -06:00
parent 1757afbe44
commit 3f9bbc6206
7 changed files with 109 additions and 55 deletions

17
src/setting.h Normal file
View File

@@ -0,0 +1,17 @@
#pragma once
#include "host.h"
#include <stddef.h>
#include <stdbool.h>
struct setting
{
bool help;
bool verbose;
bool flood;
bool numeric_only;
size_t timeout;
size_t ttl;
struct hostenv dest;
};