Skip to content

Commit

Permalink
fix: set CLI arg type to str if parse_func is provided (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
johanneskoester authored Aug 14, 2024
1 parent 00bc4ca commit aca9a5a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions snakemake_interface_common/plugin_registry/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,9 @@ def register_cli_args(self, argparser):
)
kwargs["metavar"] = f"[TAG::]{kwargs['metavar']}"

if thefield.metadata.get("parse_func"):
kwargs["type"] = str

settings.add_argument(*args, **kwargs)

def validate_settings(self, settings):
Expand Down

0 comments on commit aca9a5a

Please sign in to comment.