-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Labels
clipertains to the CLI interfacepertains to the CLI interfacegood first issuegreat for new contributors, code change is envisioned to be trivial/relatively straight-forwardgreat for new contributors, code change is envisioned to be trivial/relatively straight-forwardin-progressissue is actively being worked onissue is actively being worked onlocked[bot] locked due to inactivity[bot] locked due to inactivityseverity::2critical; broken functionality with an unacceptably complex workaroundcritical; broken functionality with an unacceptably complex workaroundstale::recovered[bot] recovered after being marked as stale[bot] recovered after being marked as staletype::documentationrequest for improved documentationrequest for improved documentation
Description
Description
On 4.6.0 the init
command can apparently take --user
and --system
arguments:
Lines 44 to 48 in 90c7467
for_user = args.user | |
if not (args.install and args.user and args.system): | |
for_user = True | |
if args.no_user: | |
for_user = False |
...but there is no mention of this in the help:
λ conda init --help
The system cannot find the path specified.
usage: conda-script.py init [-h] [--all] [--anaconda-prompt] [--json] [-v]
[-q] [-d]
[shells [shells ...]]
Initialize conda for shell interaction. [Experimental]
Options:
positional arguments:
shells One or more shells to be initialized. If not given, the
default value is 'bash' on unix and 'cmd.exe' on Windows.
Use the '--all' flag to initialize all shells. Currently
compatible shells are {bash, cmd.exe, fish, powershell,
tcsh, xonsh, zsh}
optional arguments:
-h, --help Show this help message and exit.
--all Initialize all currently available shells.
--anaconda-prompt Add an 'Anaconda Prompt' icon to your desktop.
-d, --dry-run Only display what would have been done.
Output, Prompt, and Flow Control Options:
--json Report all output as json. Suitable for using conda
programmatically.
-v, --verbose Use once for info, twice for debug, three times for
trace.
-q, --quiet Do not display progress bar.
Key parts of conda's functionality require that it interact directly with the shell
within which conda is being invoked. The `conda activate` and `conda deactivate` commands
specifically are shell-level commands. That is, they affect the state (e.g. environment
variables) of the shell context being interacted with. Other core commands, like
`conda create` and `conda install`, also necessarily interact with the shell environment.
They're therefore implemented in ways specific to each shell. Each shell must be configured
to make use of them.
This command makes changes to your system that are specific and customized for each shell.
To see the specific files and locations on your system that will be affected before, use the
'--dry-run' flag. To see the exact changes that are being or will be made to each location,
use the '--verbose' flag.
IMPORTANT: After running `conda init`, most shells will need to be closed and restarted
for changes to take effect.
Tasks
- Update docs to include the already-implemented options discussed above (Un-suppressed init argument help for --no-user, --system, and --user. #11574)
- Update help function in the CLI to explain those (Un-suppressed init argument help for --no-user, --system, and --user. #11574)
RSully and gabrielcnr
Metadata
Metadata
Assignees
Labels
clipertains to the CLI interfacepertains to the CLI interfacegood first issuegreat for new contributors, code change is envisioned to be trivial/relatively straight-forwardgreat for new contributors, code change is envisioned to be trivial/relatively straight-forwardin-progressissue is actively being worked onissue is actively being worked onlocked[bot] locked due to inactivity[bot] locked due to inactivityseverity::2critical; broken functionality with an unacceptably complex workaroundcritical; broken functionality with an unacceptably complex workaroundstale::recovered[bot] recovered after being marked as stale[bot] recovered after being marked as staletype::documentationrequest for improved documentationrequest for improved documentation
Type
Projects
Status
🏁 Done