Skip to content

Commit

Permalink
fix: Move quiet default after profile parsing (#1764)
Browse files Browse the repository at this point in the history
It's previous position caused it to be overwritten when `--profile` was
used
  • Loading branch information
pvandyken committed Jul 19, 2022
1 parent d9e0611 commit 6ade76d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions snakemake/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2444,10 +2444,6 @@ def main(argv=None):
parser = get_argument_parser()
args = parser.parse_args(argv)

if args.quiet is not None and len(args.quiet) == 0:
# default case, set quiet to progress and rule
args.quiet = ["progress", "rules"]

if args.profile:
# reparse args while inferring config file from profile
parser = get_argument_parser(args.profile)
Expand Down Expand Up @@ -2478,6 +2474,10 @@ def adjust_path(f):
if args.report_stylesheet:
args.report_stylesheet = adjust_path(args.report_stylesheet)

if args.quiet is not None and len(args.quiet) == 0:
# default case, set quiet to progress and rule
args.quiet = ["progress", "rules"]

if args.bash_completion:
cmd = b"complete -o bashdefault -C snakemake-bash-completion snakemake"
sys.stdout.buffer.write(cmd)
Expand Down

0 comments on commit 6ade76d

Please sign in to comment.