pckr/include/argparse.h

21 lines
330 B
C

#ifndef ARGPARSE_H
#define ARGPARSE_H
#include "aliases.h"
#include <linux/limits.h>
#include <stdbool.h>
typedef struct {
char dir[PATH_MAX];
char output[PATH_MAX];
} pckr_args_t;
typedef struct {
bool succeeded;
pckr_args_t args;
} argparser_t;
argparser_t parse_args(i32 argc, char *argv[]);
#endif // !ARGPARSE_H