From 3728c8aaee52686b72efb2f93fe3ea1a20f92e7b Mon Sep 17 00:00:00 2001 From: Matt Mascarenhas Date: Sat, 9 May 2020 22:27:40 +0100 Subject: [PATCH] cinera.c: Mention the default config path in -h --- cinera/cinera.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/cinera/cinera.c b/cinera/cinera.c index 16a7a7f..8211450 100644 --- a/cinera/cinera.c +++ b/cinera/cinera.c @@ -17,7 +17,7 @@ typedef struct version CINERA_APP_VERSION = { .Major = 0, .Minor = 7, - .Patch = 1 + .Patch = 2 }; #include // NOTE(matt): varargs @@ -7023,7 +7023,7 @@ enable syntax highlighting:")); } void -PrintHelp(char *BinaryLocation) +PrintHelp(char *BinaryLocation, char *DefaultConfigPath) { // Options fprintf(stderr, @@ -7031,7 +7031,8 @@ PrintHelp(char *BinaryLocation) "\n" "Options:\n" " -c \n" - " Set the main config file path.\n" + " Set the main config file path\n" + " Defaults to: %s\n" " -0\n" " Dry-run mode. Parse and print the config, but do not modify the filesystem.\n" " -e\n" @@ -7039,7 +7040,7 @@ PrintHelp(char *BinaryLocation) " -v\n" " Display version and exit\n" " -h\n" - " Display this help\n", BinaryLocation); + " Display this help\n", BinaryLocation, DefaultConfigPath); PrintHelpConfig(); } @@ -15012,7 +15013,7 @@ main(int ArgC, char **Args) break; case 'h': default: - PrintHelp(Args[0]); + PrintHelp(Args[0], ConfigPath); return RC_SUCCESS; } } @@ -15091,7 +15092,7 @@ main(int ArgC, char **Args) { if(ArgC < 2) { - PrintHelp(Args[0]); + PrintHelp(Args[0], ConfigPath); } else {