diff --git a/README.md b/README.md
index bc17e6e..c2426b9 100644
--- a/README.md
+++ b/README.md
@@ -10,7 +10,7 @@ Activate conda environments in new shell processes.
`conda spawn` is a replacement subcommand for the `conda activate` and `conda deactivate` workflow
-Instead of writing state to your current shell session, `conda spawn -n ENV-NAME` will start a new shell with your activated environment. To deactivate, exit the process with Ctrl+D, or run the command `exit`.
+Instead of writing state to your current shell session, `conda spawn ENV-NAME` will start a new shell with your activated environment. To deactivate, exit the process with Ctrl+D, or run the command `exit`.
## Installation
diff --git a/conda_spawn/cli.py b/conda_spawn/cli.py
index a040ef9..9e03113 100644
--- a/conda_spawn/cli.py
+++ b/conda_spawn/cli.py
@@ -65,11 +65,11 @@ def configure_parser(parser: argparse.ArgumentParser):
"""
Examples for --hook usage in different shells:
POSIX:
- source "$(conda spawn --hook -n ENV-NAME)"
+ source "$(conda spawn --hook ENV-NAME)"
CMD:
- FOR /F "tokens=*" %%g IN ('conda spawn --hook -n ENV-NAME') do @CALL %%g
+ FOR /F "tokens=*" %%g IN ('conda spawn --hook ENV-NAME') do @CALL %%g
Powershell:
- conda spawn --hook -n ENV-NAME | Out-String | Invoke-Expression
+ conda spawn --hook ENV-NAME | Out-String | Invoke-Expression
"""
).lstrip()
diff --git a/docs/howto.md b/docs/howto.md
index 8c23c07..d189036 100644
--- a/docs/howto.md
+++ b/docs/howto.md
@@ -25,19 +25,19 @@ For in-script usage, please consider these replacements for `conda activate`:
For Unix shell scripts:
```bash
-eval "$(conda spawn --hook --shell posix -n )"
+eval "$(conda spawn --hook --shell posix )"
```
For Windows CMD scripts:
```batch
-FOR /F "tokens=*" %%g IN ('conda spawn --hook --shell cmd -n ') do @CALL %%g
+FOR /F "tokens=*" %%g IN ('conda spawn --hook --shell cmd ') do @CALL %%g
```
For Windows Powershell scripts:
```powershell
-conda spawn --hook --shell powershell -n | Out-String | Invoke-Expression
+conda spawn --hook --shell powershell | Out-String | Invoke-Expression
```
For example, if you want to create a new environment and activate it, it would look like this:
@@ -45,7 +45,7 @@ For example, if you want to create a new environment and activate it, it would l
```bash
# Assumes `conda` is in PATH
conda create -n new-env python numpy
-eval "$(conda spawn --hook --shell powershell -n new-env)"
+eval "$(conda spawn --hook --shell powershell new-env)"
python -c "import numpy"
```
diff --git a/docs/quickstart.md b/docs/quickstart.md
index a2bc6fc..0257b80 100644
--- a/docs/quickstart.md
+++ b/docs/quickstart.md
@@ -4,7 +4,7 @@
`conda spawn` is a replacement subcommand for the `conda activate` and `conda deactivate` workflow.
-Instead of writing state to your current shell session, `conda spawn -n ENV-NAME` starts a new shell with your activated environment. To deactivate, exit the process with Ctrl+D, or run the command `exit`.
+Instead of writing state to your current shell session, `conda spawn ENV-NAME` starts a new shell with your activated environment. To deactivate, exit the process with Ctrl+D, or run the command `exit`.
The typical workflow looks like this: