Fix tox command in tool help

Also prefer to use retrive command name dynamically.

Change-Id: Iffe7fe3216256ddb52001e4fcfa49cc3ea82d6e8
This commit is contained in:
Hervé Beraud 2020-07-07 17:39:24 +02:00
parent 0ee0425e89
commit 339af5321a

View File

@ -19,13 +19,13 @@
set -e
function usage {
echo "Usage: new_release.sh <series> <deliverable> <updatetype>"
echo "Usage: $(basename $0) <series> <deliverable> <updatetype>"
echo
echo "Example: new_release.sh mitaka oslo.rootwrap feature"
echo "Example: new_release.sh independent reno bugfix"
echo "Example: $(basename $0) mitaka oslo.rootwrap feature"
echo "Example: $(basename $0) independent reno bugfix"
echo
echo "For further details about how to use the 'new-release' command:"
echo "tox -e venv new-release --help"
echo "tox -e venv -- new-release --help"
}
if [ $# -lt 3 ]; then