Skip to content

Commit c17b8f9

Browse files
committed
Added a simple help text
1 parent 56a057d commit c17b8f9

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

blk

+13
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,19 @@
33
# Save reference to blk command in order to do subsequent calls later.
44
blk=$0
55

6+
if [[ -z $1 ]]; then
7+
echo "Block/unblock websites:"
8+
echo ""
9+
echo " blk [block|unblock] <site1> <site2> <site3> ... [for <amount> <unit> | until <time>]"
10+
echo ""
11+
echo "List blocked and temporary unblocked websites:"
12+
echo ""
13+
echo " blk list"
14+
echo ""
15+
echo "See github.com/mhgbrg/blk for more examples."
16+
exit
17+
fi
18+
619
# First parameter can be an action. If it isn't, default to `block`.
720
case $1 in
821
'list')

0 commit comments

Comments
 (0)