[New-bugs-announce] [issue23357] pyvenv help shows incorrect usage

Raúl Cumplido report at bugs.python.org
Sat Jan 31 10:50:15 CET 2015


New submission from Raúl Cumplido:

Currently when you execute pyvenv the help message is wrong:

host@~  $ pyvenv
usage: venv [-h] [--system-site-packages] [--symlinks | --copies] [--clear]
            [--upgrade] [--without-pip]
            ENV_DIR [ENV_DIR ...]
venv: error: the following arguments are required: ENV_DIR

Based on the docs on https://docs.python.org/3/library/venv.html it should be:

host@~  $ pyvenv
usage: pyvenv [-h] [--system-site-packages] [--symlinks | --copies] [--clear]
              [--upgrade] [--without-pip]
              ENV_DIR [ENV_DIR ...]
pyvenv: error: the following arguments are required: ENV_DIR

Basically instead of saying usage venv it should say usage pyvenv but if you execute the module it should be venv:

host@~  $ python3.5 -m venv
usage: venv [-h] [--system-site-packages] [--symlinks | --copies] [--clear]
            [--upgrade] [--without-pip]
            ENV_DIR [ENV_DIR ...]
venv: error: the following arguments are required: ENV_DIR

----------
components: Library (Lib)
messages: 235094
nosy: raulcd
priority: normal
severity: normal
status: open
title: pyvenv help shows incorrect usage
type: enhancement
versions: Python 3.4, Python 3.5, Python 3.6

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23357>
_______________________________________


More information about the New-bugs-announce mailing list