2023-04-13 03:46:53 +00:00
|
|
|
#ifndef ARG_H
|
|
|
|
#define ARG_H
|
|
|
|
#include <stdbool.h>
|
|
|
|
|
2023-05-01 22:07:53 +00:00
|
|
|
#define LAT_VERSION "0.12.2"
|
2023-04-13 13:03:33 +00:00
|
|
|
|
2023-04-13 03:46:53 +00:00
|
|
|
struct config {
|
2023-04-29 19:08:36 +00:00
|
|
|
bool isstdin;
|
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-20 02:30:10 +00:00
|
|
|
bool literal;
|
2023-04-19 14:46:17 +00:00
|
|
|
bool pager;
|
2023-04-21 00:31:21 +00:00
|
|
|
char *name;
|
2023-04-29 19:42:42 +00:00
|
|
|
char *extension;
|
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
|