New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
--quiet
expecting an argument is a breaking change
#1660
Comments
If it helps, this should work but I haven't tried it:
The |
@dariober thanks, that is a good practice to follow that I wasn't aware of until now. I've added your working example to the list in the issue description. I agree that this isn't really a bug and there is no easy fix. Just having this here for anyone else who might come across the same thing, especially since the change in |
I just got bit by this change in behavior, and I was also surprised it wasn't included in the changelog. The |
I think I figured it out. I can't use the
Essentially, it appears that now I have to specify |
Another strange behavior I noticed. The default behavior of
|
@jdblischak The bug preventing the mixing of |
@pvandyken Thanks for fixing the bug! I confirmed it is fixed in 7.9.0: snakemake --version
## 7.9.0
cat > Snakefile << EOF
rule myrule:
shell: "echo \"Hello world\""
EOF
mkdir profile
echo "cores: 1" > profile/config.yaml
# all of the following produce the same output
snakemake -nq
snakemake --profile profile/ -nq
snakemake --profile profile/ -nq rules
snakemake -nq --profile profile/
snakemake -nq rules --profile profile/
## Building DAG of jobs...
## Job stats:
## job count min threads max threads
## ------ ------- ------------- -------------
## myrule 1 1 1
## total 1 1 1 |
@victorlin Thanks for reporting this bug. I think you can close the Issue now |
Actually, looking back at the original post, I realize the issue was the change in behavior of the % snakemake --cores 1 --quiet myrule
snakemake: error: argument --quiet/-q: invalid choice: 'myrule' (choose from 'progress', 'rules', 'all')
% snakemake --cores 1 --quiet -- myrule
Building DAG of jobs...
Using shell: /usr/bin/bash
Provided cores: 1 (use --cores to define parallelism)
Rules claiming more threads will be scaled down.
Job stats:
job count min threads max threads
------ ------- ------------- -------------
myrule 1 1 1
total 1 1 1
Select jobs to execute...
Hello world
Complete log: .snakemake/log/2022-07-19T121336.050016.snakemake.log
% snakemake --cores 1 myrule --quiet
Building DAG of jobs...
Using shell: /usr/bin/bash
Provided cores: 1 (use --cores to define parallelism)
Rules claiming more threads will be scaled down.
Job stats:
job count min threads max threads
------ ------- ------------- -------------
myrule 1 1 1
total 1 1 1
Select jobs to execute...
Hello world
Complete log: .snakemake/log/2022-07-19T121647.506241.snakemake.log @victorlin It's your call as far as closing this Issue or leaving it open |
I think it's safe to close this as "won't fix", since there is an easy workaround and I doubt |
@jdblischak Is this still an issue? |
@pvandyken No, your PR fixed that issue. That is what I confirmed above in #1660 (comment) My comments after that were related to the subject of @victorlin's original post in this Issue, which is the fact that the ordering of |
Snakemake version
7.7.0
Describe the bug
The new version 7.7.0 breaks scripts that use
--quiet
with a target name following the flag (e.g.snakemake --cores 1 --quiet myrule
).Previously, with version 7.6.2,
--quiet
was a standalone boolean flag:Now, with a change in
--quiet
behavior introduced in c8d81d0 and released in version 7.7.0, it will try to read any arguments:Logs
See example below.
Minimal example
Setup:
Workarounds
Note that this only breaks when the target is specified directly following
--quiet
. So these still work with 7.7.0:Additional context
N/A
The text was updated successfully, but these errors were encountered: