aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2019-10-08 09:38:07 +0200
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2019-10-08 09:38:07 +0200
commitfd74ecee9020fcf80b3b9628f277d9311b443395 (patch)
tree05903b33016a128ffc68a445a1526b3b061bf66c
parente8c0f0c869778a7db691b2924fe9f3d5dd24dc11 (diff)
libcecutil: spaces should be replaced by - for help_features
The code that generates the --help-<feature> options converted spaces to underscores instead of -. That led to options like --help-tuner_control instead of --help-tuner-control. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
-rwxr-xr-xutils/libcecutil/cec-gen.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/libcecutil/cec-gen.pl b/utils/libcecutil/cec-gen.pl
index e07bd9dc..d4848a74 100755
--- a/utils/libcecutil/cec-gen.pl
+++ b/utils/libcecutil/cec-gen.pl
@@ -451,7 +451,7 @@ close $fh;
open(my $fh, '>', 'cec-parse-gen.h') or die "Could not open cec-parse-gen.h for writing";
foreach (sort keys %feature_usage) {
$name = $_;
- s/ /_/g;
+ s/ /-/g;
s/([A-Z])/\l\1/g;
$help_features .= sprintf("\t\" --help-%-28s Show help for the $name feature\\n\" \\\n", $_);
$opt = "OptHelp" . $name;

Privacy Policy