diff options
| author | Eugene Triguba <eugenetriguba@gmail.com> | 2025-07-12 11:09:18 -0400 |
|---|---|---|
| committer | Eugene Triguba <eugenetriguba@gmail.com> | 2025-07-12 11:09:18 -0400 |
| commit | 6a94f7837dbc295911ca65ac64ab17c3e9f3c4ee (patch) | |
| tree | 31dfa3593d79e59dfefa307cb1a5bdbfb63a8804 /src/main.c | |
| parent | Add handling for zero or negative values for -w (diff) | |
| download | cli-6a94f7837dbc295911ca65ac64ab17c3e9f3c4ee.zip | |
Use exit code 0 for -h
Diffstat (limited to 'src/main.c')
| -rw-r--r-- | src/main.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -28,9 +28,11 @@ int main(int argc, char *argv[]) { print_usage(argv[0]); return EXIT_FAILURE; } - linebuffer_capacity= (size_t) width; + linebuffer_capacity = (size_t) width; break; case 'h': + print_usage(argv[0]); + return EXIT_SUCCESS; default: print_usage(argv[0]); return EXIT_FAILURE; |