aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRaghuram Subramani <raghus2247@gmail.com>2025-07-30 13:58:22 +0530
committerRaghuram Subramani <raghus2247@gmail.com>2025-07-30 13:58:22 +0530
commit9aba370924df4c471b8527f08d2c60cacb8989d9 (patch)
treeead6415aa3a0ceb9b240e08a57b2b06b0a75eb75 /src
parent5a1c11d1f517b287ad840ca4ffd9805010577624 (diff)
main: set base directory as current directory by default
Diffstat (limited to 'src')
-rw-r--r--src/main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index dffdc78..2977ceb 100644
--- a/src/main.c
+++ b/src/main.c
@@ -52,7 +52,10 @@ main(int argc, char **argv)
}
}
- msg->base_directory = argv[optind];
+ if (optind == argc)
+ msg->base_directory = ".";
+ else
+ msg->base_directory = argv[optind];
int r = run();