pip-micropython: Require command verb, but restrict to "install" only.

So, pip-micropython can/should be run as normal pip:

    pip-micropython install micropython-unittest
This commit is contained in:
Paul Sokolovsky 2014-04-06 23:46:18 +03:00
parent 07e24a6294
commit 9f043da5c3
1 changed files with 6 additions and 0 deletions

View File

@ -6,6 +6,12 @@
# ports (if PIP_MICROPY_DEST environment var is set). # ports (if PIP_MICROPY_DEST environment var is set).
# #
if [ "$1" != "install" ]; then
echo "Only install command is supported currently"
exit 1
fi
shift
if [ -n "$PIP_MICROPY_DEST" ]; then if [ -n "$PIP_MICROPY_DEST" ]; then
dest="$PIP_MICROPY_DEST" dest="$PIP_MICROPY_DEST"
echo "Destination snapshot directory: $dest" echo "Destination snapshot directory: $dest"