aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorRaghuram Subramani <raghus2247@gmail.com>2025-07-31 13:33:19 +0530
committerRaghuram Subramani <raghus2247@gmail.com>2025-07-31 13:33:19 +0530
commitdfda50489057d06cc84e30056252efd0ac76cf2e (patch)
tree71becc41a416a55eb79613309a5dd3dc74cc1889 /src/main.c
parent2758363d46c4ab0f187a11d0c58f7a39a82fdf82 (diff)
main: print watching & verbosity
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c9
1 files changed, 6 insertions, 3 deletions
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 = ".";