20 lines
365 B
C
20 lines
365 B
C
#ifndef ARGS_H
|
|
#define ARGS_H
|
|
|
|
#include <argp.h>
|
|
#include <stdbool.h>
|
|
#include <stdlib.h>
|
|
#include "../lib/error.h"
|
|
|
|
typedef struct {
|
|
char* filePath;
|
|
bool showVersion;
|
|
} CometArgs;
|
|
|
|
Result(CometArgs, charptr);
|
|
|
|
extern const struct argp_option options[];
|
|
extern const struct argp argp;
|
|
ResultType(CometArgs, charptr) parseArgs(int argc, char** argv);
|
|
|
|
#endif |