Skip to content

Plugin::Filter can't pass multivalued options to bundle [rt.cpan.org #81958] #695

@rjbs

Description

@rjbs

https://rt.cpan.org/Ticket/Display.html?id=81958

One can't pass duplicated options to the bundle, only allows '-remove' to be duplicated.  

mvp_multivalue_args issue?

For example: passing multiple "except" lines to PruneCruft filter on a modified @Basic bundle 
fails with an error.

  [@Filter]
  -bundle = @Basic
  -remove = MetaYAML
  except = secret_file_1.txt
  except = secret_philez

error:
multiple values given for property except in section @Filter at 
.../perl5/lib/perl5/Config/MVP/Assembler.pm line 98.

I doubt we want to load all the (non filtered) plugins in the bundle and combine their 
mvp_multivalue_args settings, so this may just need a documentation work around.  Is their 
an option other than removing the plugin from the bundle and then configuring it manually, 
ala:

  [@Filter]
  -bundle = @Basic
  -remove = MetaYAML
  -remove = PruneCruft
  [PruneCruft]
  except = secret_file_1.txt
  except = secret_philez

Thanks,
Andrew

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions