lat/include/arg.h

25 lines
336 B
C
Raw Permalink Normal View History

#ifndef ARG_H
#define ARG_H
#include <stdbool.h>
#define LAT_VERSION "0.12.1"
2023-04-13 13:03:33 +00:00
struct config {
2023-04-17 22:40:17 +00:00
bool stdin;
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-13 13:24:41 +00:00
bool has_read_stdin;
};
extern struct config conf;
int parseargs(int argc, char *argv[]);
#endif