diff options
| author | Jan Sucan <jan@jansucan.com> | 2021-05-30 16:47:39 +0200 |
|---|---|---|
| committer | Jan Sucan <jan@jansucan.com> | 2021-05-30 16:47:39 +0200 |
| commit | e252807e866496107aa6e18b5ea0d7b29e5bb6a0 (patch) | |
| tree | 8522e1abbe0c3ef528404f17594ff5ee92705ef7 /src | |
| parent | 9ecdd5c0fd0b77682a6bbcfcfeb1d1014b1f538b (diff) | |
Change exit code on help option to 0
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -65,8 +65,10 @@ main(int argc, char **argv) { options_t opts; - if (options_parse(argc, argv, &opts) || opts.help) { + if (options_parse(argc, argv, &opts)) { options_usage(1); + } else if (opts.help) { + options_usage(0); } const bool is_action_backup = (opts.in_file_path != NULL); |
