blob: 9695fd4c9e2bfbb91fad62bc7b71817ba27a9d3c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#ifndef YAPSSG_CLI_H
#define YAPSSG_CLI_H
#include "Logger/Logger.h"
typedef enum {
INPUT_TYPE_NONE,
INPUT_TYPE_FILE,
INPUT_TYPE_DIRECTORY
} InputType;
typedef enum {
CLI_PARSE_ERROR = -1,
CLI_PARSE_OK,
CLI_PARSE_HELP,
CLI_PARSE_VERSION
} CliParseResult;
typedef struct {
InputType input_type;
const char *input_path;
const char *output_path;
int overwrite_output;
LogLevel log_level;
} CliOptions;
CliParseResult cli_parse(int argc, char **argv, CliOptions *options);
void cli_print_usage(const char *program_name);
#endif
|