commit b92a651b030bebdb1b7038f91e387bd626dd4243
parent 5f0fd2881adc5b4c55c4d9afa47709bcb1a60dc2
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Sat, 7 Mar 2026 12:59:52 +0100
Fix the brief help option for the shtr tool
When enabled, the -h option did indeed display a summary of the shtr
command, but an error was reported stating that mandatory arguments were
missing. However, these arguments are no longer mandatory when only
displaying this help.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/shtr_main.c b/src/shtr_main.c
@@ -79,7 +79,7 @@ args_init(struct args* args, int argc, char** argv)
case 'a': args->bench_line_access = 1; break;
case 'c': args->check_line_data = 1; break;
case 'H': args->human_readable = 1; break;
- case 'h': usage(stdout); args->quit = 1; break;
+ case 'h': usage(stdout); args->quit = 1; goto exit;
case 'i': args->print_info = 1; break;
case 'l': args->lines = optarg; break;
case 'm': args->molparam = optarg; break;