mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
add support for a configuration file
Signed-off-by: Liam Beguin <liambeguin@gmail.com>
This commit is contained in:
parent
2795ef6c79
commit
2e5c1ff20c
6 changed files with 274 additions and 1 deletions
|
|
@ -24,6 +24,7 @@
|
|||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include "options.h"
|
||||
#include "conffile.h"
|
||||
#include "tty.h"
|
||||
#include "log.h"
|
||||
#include "error.h"
|
||||
|
|
@ -36,6 +37,10 @@ int main(int argc, char *argv[])
|
|||
/* Add error exit handler */
|
||||
atexit(&error_exit);
|
||||
|
||||
/* Parse configuration file */
|
||||
conf_parse_file(argc, argv);
|
||||
atexit(&conf_exit);
|
||||
|
||||
/* Parse options */
|
||||
parse_options(argc, argv);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue