Skip to content

Commit

Permalink
Move default settings of quiet after profile parse
Browse files Browse the repository at this point in the history
  • Loading branch information
pvandyken committed Jul 11, 2022
1 parent 454bfd1 commit d737430
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions snakemake/__init__.py
Expand Up @@ -2444,9 +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
Expand Down Expand Up @@ -2478,6 +2475,12 @@ 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"]
# import pprint
# pprint.pprint(args.__dict__)

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 d737430

Please sign in to comment.