Skip to content

Commit

Permalink
added type tuple when checking if verbose is in boolean options
Browse files Browse the repository at this point in the history
  • Loading branch information
LimaBD committed Apr 28, 2023
1 parent 3026b50 commit c062fad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mezcla/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ def __init__(self, runtime_args=None, description=None, skip_args=False,
self.boolean_options += boolean_options
# note: adds --verbose unless already specified (TODO: add way to disable)
boolean_options_proper = [t for t in self.boolean_options if isinstance(t, str)]
boolean_options_proper += [t[0] for t in self.boolean_options if isinstance(t, list)]
boolean_options_proper += [t[0] for t in self.boolean_options if isinstance(t, (list, tuple))]
if (VERBOSE_ARG not in boolean_options_proper):
debug.trace(6, f"Adding {VERBOSE_ARG} to {self.boolean_options}")
self.boolean_options += [(VERBOSE_ARG, "Verbose output mode")]
Expand Down

0 comments on commit c062fad

Please sign in to comment.