You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think this should remain a global flag. It would be pretty painful to enumerate exactly what commands might access the network. And it doesn't really help the user in any way, since these flags are already listed separately in the manpages.
Also, making global flags non-global means you can't write stuff like this in a script:
extraNixOptions="-v"
if [[ some condition ]];
extraNixOptions+=" --offline"
fi
nix $extraNixOptions some-command ...
nix $extraNixOptions some-other-command ...
since some of these options would no longer be accepted by all commands.
edolstra
removed
the
idea approved
The given proposal has been discussed and approved by the Nix team. An implementation is welcome.
label
Feb 13, 2023
Describe the bug
CLI help should be relevant
Steps To Reproduce
Expected behavior
Only show relevant options
nix-env --version
outputAdditional context
Add any other context about the problem here.
Priorities
Add 👍 to issues you find important.
The text was updated successfully, but these errors were encountered: