feat: argument parse 1

This commit is contained in:
2025-08-22 13:40:07 -04:00
parent fbbcb22867
commit 8fb97ffa8f
4 changed files with 63 additions and 33 deletions

View File

@@ -10,14 +10,8 @@
#define YAIT_H
typedef struct {
bool posix;
bool git;
bool clang;
bool lib;
bool cc;
bool gnu;
/* If this flag is set it will ignore: GNU, and enforce POSIX. */
bool simple;
} flag_t;
typedef struct {
@@ -35,10 +29,19 @@ typedef enum {
UNL,
} licence_t;
typedef enum {
POSIX,
SIMPLE,
GNU,
LIBRARY,
FASM,
} style_t;
typedef struct {
libmap_t libraries;
licence_t licence;
flag_t flags;
style_t style;
char *project;
char *name;