From dfda50489057d06cc84e30056252efd0ac76cf2e Mon Sep 17 00:00:00 2001 From: Raghuram Subramani Date: Thu, 31 Jul 2025 13:33:19 +0530 Subject: main: print watching & verbosity --- src/main.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 0b97ea7..cfc6f63 100644 --- a/src/main.c +++ b/src/main.c @@ -31,6 +31,7 @@ msg_t *msg; bool stop = false; +bool watch = false; void signal_handler(int x) @@ -54,7 +55,11 @@ void config(void) { printf("Base Directory: %s\n", msg->base_directory); - printf("Output Directory: %s\n\n", msg->output_directory); + printf("Output Directory: %s\n", msg->output_directory); + printf("Verbose: %s\n", msg->verbose ? "true" : "false"); + printf("Watching: %s\n", watch ? "true" : "false"); + + printf("\n"); } int @@ -62,8 +67,6 @@ main(int argc, char **argv) { printf("msg: The Minimal Static Site Generator\n\n"); - bool watch = false; - int opt; msg = malloc(sizeof(msg_t)); msg->base_directory = "."; -- cgit v1.2.3