diff options
author | Raghuram Subramani <raghus2247@gmail.com> | 2025-07-30 13:58:22 +0530 |
---|---|---|
committer | Raghuram Subramani <raghus2247@gmail.com> | 2025-07-30 13:58:22 +0530 |
commit | 9aba370924df4c471b8527f08d2c60cacb8989d9 (patch) | |
tree | ead6415aa3a0ceb9b240e08a57b2b06b0a75eb75 /src/main.c | |
parent | 5a1c11d1f517b287ad840ca4ffd9805010577624 (diff) |
main: set base directory as current directory by default
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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(); |