summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Faure <faure@kde.org>2016-08-05 22:02:59 (GMT)
committerDavid Faure <faure@kde.org>2016-08-05 22:02:59 (GMT)
commit692af4f35420b3373b1f1f4452eb4664cfcc8e83 (patch)
tree71e14b29d6b935e78ac47c0e3a8e269c672d148f
parent91bf543ed25a4ec433417cfbb08b4257e8b4fab6 (diff)
fix syntax in previous commit
-rwxr-xr-xkf5/convert-kcmdlineargs.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/kf5/convert-kcmdlineargs.pl b/kf5/convert-kcmdlineargs.pl
index 9daff90..6e54e81 100755
--- a/kf5/convert-kcmdlineargs.pl
+++ b/kf5/convert-kcmdlineargs.pl
@@ -182,7 +182,7 @@ foreach my $file (@ARGV) {
my $description = $4;
my $defaultValue = $5;
my $trail = "";
- if ($name =~ /([\w-_]*) <(.*)>/) { # "stylesheet <xsl>"
+ if ($name =~ /([\w\-_]*) <(.*)>/) { # "stylesheet <xsl>"
$name = $1;
$trail = ", QLatin1String(\"$2\")";
}
@@ -217,7 +217,7 @@ foreach my $file (@ARGV) {
s/${args}\->usage\s*\(\)/parser.showHelp()/;
s/${args}\->clear\s*\(\);//;
s/KCmdLineArgs::usage\s*\(\)/parser.showHelp()/;
- if (/arguments?\(\"([\w-_]*)/ || /isSet\(\"([\w-_]*)/) {
+ if (/arguments?\(\"([\w\-_]*)/ || /isSet\(\"([\w\-_]*)/) {
my $optionName = $1;
if (defined $negatedOptions{"no$optionName"}) {
s/$/\/\/ TODO: negate check (and ensure nobody passes the no-op --$optionName argument)/;