diff options
author | Raghuram Subramani <raghus2247@gmail.com> | 2025-07-31 13:33:19 +0530 |
---|---|---|
committer | Raghuram Subramani <raghus2247@gmail.com> | 2025-07-31 13:33:19 +0530 |
commit | dfda50489057d06cc84e30056252efd0ac76cf2e (patch) | |
tree | 71becc41a416a55eb79613309a5dd3dc74cc1889 /src/main.c | |
parent | 2758363d46c4ab0f187a11d0c58f7a39a82fdf82 (diff) |
main: print watching & verbosity
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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 = "."; |