diff --git a/q2_fastp/utils.py b/q2_fastp/utils.py index 2ef6b27..e4542c3 100644 --- a/q2_fastp/utils.py +++ b/q2_fastp/utils.py @@ -35,6 +35,9 @@ def run_command(cmd, env=None, verbose=True, pipe=False, **kwargs): def add_param(cmd, param, value, flag=None): - if value is not None and value != "": + if isinstance(value, bool): + if value: + cmd.append(flag if flag else f"--{param}") + elif value is not None and value != "": cmd.append(flag if flag else f"--{param}") cmd.append(str(value))