-
-
Notifications
You must be signed in to change notification settings - Fork 71
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
<ADDITIONAL_JOB_ARGS>
are passed to cargo check
when switch from run
to check
task
#122
Comments
Do you suggest the arguments after the double-slash ( And what if somebody wanted to have them given to all jobs ? Opinions welcome |
The thing is that So I believe the correct thing to do, would be to just not pass additional arguments to tasks that don't support them. If the user switches back to a task that supports additional arguments (e.g.
Ideally, additional command line arguments would be given to all tasks that accept them, but not others.
This wouldn't work, because |
cargo check does accept additional arguments. You can do this today :
So bacon would have to know whether the arguments are used by the job executable in a direct manner or not ? |
Ah, I see. I thought the However, that doesn't change much. In this case, the issue is with
Cargo allows additional command line arguments (without the But I think, it would be reasonable for Bacon to require |
This is a wrapper script for bacon calling cargo commands. This allows to select only one day with "bacon -- --day 1", but fixes the problem, that different cargo commands need this information in a different format (run/test/bench) or some cargo commands don't take parameters like this at all (check/clippy). So it calls all the cargo commands with parameters which work for them. See: Canop/bacon#122
I think the |
Hi,
If I execute
bacon run -- foo
, and then pressCtrl+d
to switch to the default task (i.e.,run
), I get the following error:Basically,
cargo check
doesn't allow additional arguments.This could also be true for other tasks (e.g.,
test
), but I'm not sure.The text was updated successfully, but these errors were encountered: