summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-03-02 22:07:13 +0100
committerCarl Hetherington <cth@carlh.net>2025-03-02 23:21:32 +0100
commit03058b4ad58051c26e28015cf9daf39178a75b37 (patch)
tree241e4daad29059ddc45f9c905a9cfb6d9e237e85 /src
parent6630754d9efbafb68d1c331e8fca48fb7e486117 (diff)
Use program_name constant.
Diffstat (limited to 'src')
-rw-r--r--src/tools/dcpomatic_cli.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tools/dcpomatic_cli.cc b/src/tools/dcpomatic_cli.cc
index 7ee61ac23..5158e4e79 100644
--- a/src/tools/dcpomatic_cli.cc
+++ b/src/tools/dcpomatic_cli.cc
@@ -64,9 +64,9 @@ using boost::optional;
static void
-help (string n)
+help()
{
- cerr << "Syntax: " << n << " [OPTION] [<FILM>]\n"
+ cerr << "Syntax: " << program_name << " [OPTION] [<FILM>]\n"
<< variant::insert_dcpomatic(" -v, --version show %1 version\n")
<< " -h, --help show this help\n"
<< " -f, --flags show flags passed to C++ compiler on build\n"
@@ -321,7 +321,7 @@ main (int argc, char* argv[])
cout << "dcpomatic version " << dcpomatic_version << " " << dcpomatic_git_commit << "\n";
exit (EXIT_SUCCESS);
case 'h':
- help(program_name);
+ help();
exit (EXIT_SUCCESS);
case 'f':
cout << dcpomatic_cxx_flags << "\n";
@@ -398,7 +398,7 @@ main (int argc, char* argv[])
}
if (optind >= fixer.argc()) {
- help(program_name);
+ help();
exit (EXIT_FAILURE);
}