#4216·mamba

`micromamba run` should accept a trailing `--` as `conda` does

Author: ThibaullttCreated Mar 29, 2026Updated Jul 27, 2026
Labelstype::feature-request

Troubleshooting docs

  • My problem is not solved in the Troubleshooting docs

Anaconda default channels

  • I do NOT use the Anaconda default channels (pkgs/* etc.)

How did you install Mamba?

Micromamba

Search tried in issue tracker

No other issues I could find are similar.

Latest version of Mamba

  • My problem is not solved with the latest version

Tried in Conda?

I do not have this problem with Conda, just with Mamba

Describe your issue

The docs for the conda run command mention it accepts a trailing -- separator (just like most git commands) to differentiate between the arguments to the run command and the command to execute in the specified environment. Here is the small example they show, copied over from the documentation:

bash
conda run -n my-python-env -- python -v
conda run -v -n my-python-env -- tar -tvf file.tar

mamba info / micromamba info

bash
libmamba version : 2.5.0
     micromamba version : 2.5.0
           curl version : libcurl/8.18.0 OpenSSL/3.5.4 zlib/1.3.1 zstd/1.5.7 libssh2/1.11.1 nghttp2/1.67.0 mit-krb5/1.21.3
     libarchive version : libarchive 3.8.5 zlib/1.3.1 bz2lib/1.0.8 libzstd/1.5.7 libb2/bundled
       envs directories : /home/thib/.local/micromamba/envs
          package cache : /home/thib/.local/micromamba/pkgs
                          /home/thib/.mamba/pkgs
            environment : base
           env location : /home/thib/.local/micromamba
      user config files : /home/thib/.mambarc
 populated config files :
       virtual packages : __unix=0=0
                          __linux=6.19.9=0
                          __glibc=2.42=0
                          __archspec=1=x86_64_v3
                          __cuda=13.0=0
               channels : https://conda.anaconda.org/conda-forge/linux-64
                          https://conda.anaconda.org/conda-forge/noarch
       base environment : /home/thib/.local/micromamba
               platform : linux-64

Logs

bash
$ # The environment 'my-python-env' exists and it _not_ activated.
$ micromamba run -n my-python-env -- bash
The following argument was not expected: bash
Run with --help for more information.

environment.yml

yaml

~/.condarc

yaml
# No configuration.