diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-03-03 00:30:53 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-03-03 00:30:53 +0100 |
| commit | 4bf7405ed576ff8286ecb9750ce42c8cd29adea0 (patch) | |
| tree | 2b498b5c0153c68ad31dd9eac59f52fb67f13072 /src/lib | |
| parent | 20875785b836b44f50001891e013f996e54e00c8 (diff) | |
Fix some erroneous exit() commands in the new encode CLI.
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/encode_cli.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/encode_cli.cc b/src/lib/encode_cli.cc index 6038b6441..6260e9dd9 100644 --- a/src/lib/encode_cli.cc +++ b/src/lib/encode_cli.cc @@ -305,13 +305,13 @@ encode_cli(int argc, char* argv[], function<void (string)> out, function<void () switch (c) { case 'v': out(fmt::format("dcpomatic version {} {}\n", dcpomatic_version, dcpomatic_git_commit)); - exit(EXIT_SUCCESS); + return {}; case 'h': help(out); - exit(EXIT_SUCCESS); + return {}; case 'f': out(fmt::format("{}\n", dcpomatic_cxx_flags)); - exit(EXIT_SUCCESS); + return {}; case 'n': progress = false; break; @@ -379,12 +379,12 @@ encode_cli(int argc, char* argv[], function<void (string)> out, function<void () if (list_servers_) { list_servers(out); - exit(EXIT_SUCCESS); + return {}; } if (optind >= argc) { help(out); - exit(EXIT_FAILURE); + return {}; } if (export_format && !export_filename) { @@ -425,7 +425,7 @@ encode_cli(int argc, char* argv[], function<void (string)> out, function<void () if (dump) { print_dump(out, film); - exit(EXIT_SUCCESS); + return {}; } dcpomatic_log = film->log(); |
