Skip to content

Commit b08d1b3

Browse files
committed
Add a few more error checks
Add a few more error checks. Add feature to request help. Signed-off-by: Scott Lowe <[email protected]>
1 parent be4cabd commit b08d1b3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

dmcontext

+5
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ if [ "$#" -ne 1 ]; then
99
exit 1
1010
fi
1111

12+
if [ "$1" = "--help" ]; then
13+
echo "Usage: dmcontext <name-of-machine-created-by-docker-machine>"
14+
exit 0
15+
fi
16+
1217
# Set the name of the machine against which the script will operate
1318
MACHINE=$1
1419

0 commit comments

Comments
 (0)