Skip to content

Commit 0a4c268

Browse files
committed
documentation for -a <project_path> flag
1 parent c209d1f commit 0a4c268

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

docs/en/command_ref.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ Create a new environment, in the WORKON_HOME.
2222

2323
Syntax::
2424

25-
mkvirtualenv [-i package] [-r requirements_file] [virtualenv options] ENVNAME
25+
mkvirtualenv [-a project_path] [-i package] [-r requirements_file] [virtualenv options] ENVNAME
2626

27-
All command line options except ``-i``, ``-r``, and ``-h`` are passed
27+
All command line options except ``-a``, ``-i``, ``-r``, and ``-h`` are passed
2828
directly to ``virtualenv``. The new environment is automatically
2929
activated after being initialized.
3030

@@ -41,6 +41,8 @@ activated after being initialized.
4141
mynewenv
4242
(mynewenv)$
4343

44+
The ``-a`` option can be used to associate a project with the new environment.
45+
4446
The ``-i`` option can be used to install one or more packages (by
4547
repeating the option) after the environment is created.
4648

docs/en/scripts.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ postmkvirtualenv
6565
:Sourced/Run: sourced
6666

6767
``$VIRTUALENVWRAPPER_HOOK_DIR/postmkvirtualenv`` is sourced after the new environment
68-
is created and activated.
68+
is created and activated. If the ``-a`` <project_path> flag was used,
69+
the link to the project directory is set up before this script is sourced.
6970

7071
.. _scripts-precpvirtualenv:
7172

0 commit comments

Comments
 (0)