Skip to content

Commit 9f043da

Browse files
committed
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
1 parent 07e24a6 commit 9f043da

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

tools/pip-micropython

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@
66
# ports (if PIP_MICROPY_DEST environment var is set).
77
#
88

9+
if [ "$1" != "install" ]; then
10+
echo "Only install command is supported currently"
11+
exit 1
12+
fi
13+
shift
14+
915
if [ -n "$PIP_MICROPY_DEST" ]; then
1016
dest="$PIP_MICROPY_DEST"
1117
echo "Destination snapshot directory: $dest"

0 commit comments

Comments
 (0)