diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-07-28 01:12:34 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-07-28 01:12:34 +0100 |
| commit | e86b864c0e8e1376b328f2a41c89d16d947947a1 (patch) | |
| tree | 00cbb12a2f8ca2f15ec8f7ee00866f62496f5c10 /src | |
| parent | f7e6d1908b8b74f8d1aa0797829380b500ee4b42 (diff) | |
Allow makedcp to report version.
Diffstat (limited to 'src')
| -rw-r--r-- | src/tools/makedcp.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tools/makedcp.cc b/src/tools/makedcp.cc index f4296f41c..3d9db6a31 100644 --- a/src/tools/makedcp.cc +++ b/src/tools/makedcp.cc @@ -41,6 +41,7 @@ static void help (string n) { cerr << "Syntax: " << n << " [OPTION] <FILM>\n" + << " -v, --version show DVD-o-matic version\n" << " -h, --help show this help\n" << " -d, --deps list DVD-o-matic dependency details and quit\n" << " -t, --test run in test mode (repeatable UUID generation, timestamps etc.)\n" @@ -59,6 +60,7 @@ main (int argc, char* argv[]) int option_index = 0; while (1) { static struct option long_options[] = { + { "version", no_argument, 0, 'v'}, { "help", no_argument, 0, 'h'}, { "deps", no_argument, 0, 'd'}, { "test", no_argument, 0, 't'}, @@ -73,6 +75,9 @@ main (int argc, char* argv[]) } switch (c) { + case 'v': + cout << "dvdomatic version " << DVDOMATIC_VERSION << "\n"; + exit (EXIT_SUCCESS); case 'h': help (argv[0]); exit (EXIT_SUCCESS); |
