Skip to content

Commit

Permalink
Item14237: Conversion of short option names into longer ones
Browse files Browse the repository at this point in the history
  • Loading branch information
vrurg committed Oct 5, 2017
1 parent b96cefb commit 6ef5d97
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions core/lib/Foswiki/FeatureSet.pm
Original file line number Diff line number Diff line change
Expand Up @@ -650,6 +650,11 @@ In case any of the above conditions fail a =Foswiki::Exception::Fatal= is raised
=cut

my %metaKeyMap = (
-doc => "-documentation",
-desc => "-description",
);

sub _verifyFeatureData {
my $feature = shift;
my $data = shift;
Expand Down Expand Up @@ -689,6 +694,7 @@ sub _verifyFeatureData {
. $key
. ") must begin with dash." )
unless $key =~ /^-/;
$key = $metaKeyMap{$key} if defined $metaKeyMap{$key};
$fsMeta{$key} = $val;
}

Expand Down

0 comments on commit 6ef5d97

Please sign in to comment.