diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-02-03 09:58:51 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-02-03 09:58:51 +0000 |
| commit | 0c6af18e06e9aff329a613deadcd773768fddd42 (patch) | |
| tree | 33a6c4ef608ab2007f7c86ff88839205866a0bc9 /tools/dcpdiff.cc | |
| parent | 391860586976a6b6309caa56cc1191e1ca9efd06 (diff) | |
Fix previous.
Diffstat (limited to 'tools/dcpdiff.cc')
| -rw-r--r-- | tools/dcpdiff.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/dcpdiff.cc b/tools/dcpdiff.cc index 08b72710..30c09f87 100644 --- a/tools/dcpdiff.cc +++ b/tools/dcpdiff.cc @@ -114,11 +114,11 @@ main (int argc, char* argv[]) /* From here we're using random capital letters for the short option */ { "ignore-missing-assets", no_argument, 0, 'A'}, { "cpl-annotation-texts", no_argument, 0, 'C'}, - { "key", no_argument, 0, 'D'}, + { "key", required_argument, 0, 'D'}, { 0, 0, 0, 0 } }; - int c = getopt_long (argc, argv, "Vhvnm:s:kACD", long_options, &option_index); + int c = getopt_long (argc, argv, "Vhvnm:s:kACD:", long_options, &option_index); if (c == -1) { break; @@ -154,7 +154,7 @@ main (int argc, char* argv[]) options.cpl_annotation_texts_can_differ = true; break; case 'D': - key = optarg; + key = string (optarg); break; } } |
