2023-04-13 03:46:53 +00:00
|
|
|
#ifndef ARG_H
|
|
|
|
#define ARG_H
|
|
|
|
#include <stdbool.h>
|
|
|
|
|
2023-04-13 13:03:33 +00:00
|
|
|
#define LAT_VERSION "0.4.0"
|
|
|
|
|
2023-04-13 03:46:53 +00:00
|
|
|
struct config {
|
2023-04-17 14:23:52 +00:00
|
|
|
bool process;
|
2023-04-13 03:46:53 +00:00
|
|
|
bool color;
|
|
|
|
bool lines;
|
2023-04-13 13:24:41 +00:00
|
|
|
bool has_read_stdin;
|
2023-04-13 03:46:53 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
extern struct config conf;
|
|
|
|
|
|
|
|
int parseargs(int argc, char *argv[]);
|
|
|
|
|
|
|
|
#endif
|