2023-04-13 03:46:53 +00:00
|
|
|
#ifndef ARG_H
|
|
|
|
#define ARG_H
|
|
|
|
#include <stdbool.h>
|
|
|
|
|
2023-04-19 14:46:17 +00:00
|
|
|
#define LAT_VERSION "0.10.0"
|
2023-04-13 13:03:33 +00:00
|
|
|
|
2023-04-13 03:46:53 +00:00
|
|
|
struct config {
|
2023-04-17 22:40:17 +00:00
|
|
|
bool stdin;
|
2023-04-17 14:23:52 +00:00
|
|
|
bool process;
|
2023-04-13 03:46:53 +00:00
|
|
|
bool color;
|
|
|
|
bool lines;
|
2023-04-18 02:04:03 +00:00
|
|
|
bool headers;
|
2023-04-18 12:58:23 +00:00
|
|
|
int force_binary;
|
2023-04-19 14:46:17 +00:00
|
|
|
bool pager;
|
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
|