diff options
author | Raghuram Subramani <raghus2247@gmail.com> | 2025-08-01 13:24:08 +0530 |
---|---|---|
committer | Raghuram Subramani <raghus2247@gmail.com> | 2025-08-01 13:24:08 +0530 |
commit | 1b60f9bf5c211ed599f2d9e596ccf709bfc8af85 (patch) | |
tree | 34c8c17ed1ac8cccbaaa0a9dbd12bb672a6119cf | |
parent | a9a8e41213c2887b650130f0f120bea39e1158a9 (diff) |
main: use multi-line strings for printf
-rw-r--r-- | src/main.c | 27 |
1 files changed, 15 insertions, 12 deletions
@@ -81,23 +81,26 @@ signal_handler(int x) void usage(char *program) { - printf("Usage: %s [-h] [-w] [-v] [-o <output>] <directory>\n", program); - printf("\t-h : Help\n"); - printf("\t-w : Watch working directory for changes\n"); - printf("\t-v : Verbose\n"); - printf("\t-o <output>: Output directory\n"); - printf("\t<directory>: Working directory\n"); + printf("Usage: %s [-h] [-w] [-v] [-o <output>] <directory>\n" + "\t-h : Help\n" + "\t-w : Watch working directory for changes\n" + "\t-v : Verbose\n" + "\t-o <output>: Output directory\n" + "\t<directory>: Working directory\n", + program); } void config(void) { - printf("Base Directory: %s\n", msg->base_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"); + printf("Base Directory: %s\n" + "Output Directory: %s\n" + "Verbose: %s\n" + "Watching: %s\n\n", + msg->base_directory, + msg->output_directory, + msg->verbose ? "true" : "false", + watch ? "true" : "false"); } int |