lat/include/arg.h

26 lines
357 B
C
Raw Normal View History

#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
struct config {
2023-04-29 19:08:36 +00:00
bool isstdin;
2023-04-17 14:23:52 +00:00
bool process;
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;
bool literal;
2023-04-19 14:46:17 +00:00
bool pager;
char *name;
2023-04-29 19:42:42 +00:00
char *extension;
2023-04-13 13:24:41 +00:00
bool has_read_stdin;
};
extern struct config conf;
int parseargs(int argc, char *argv[]);
#endif