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"
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'},
}
switch (c) {
+ case 'v':
+ cout << "dvdomatic version " << DVDOMATIC_VERSION << "\n";
+ exit (EXIT_SUCCESS);
case 'h':
help (argv[0]);
exit (EXIT_SUCCESS);