Commit 9888c0b8 authored by Aral Balkan's avatar Aral Balkan

Added --help support to better/list.

parent ce978dbd
Pipeline #485 skipped
...@@ -39,10 +39,13 @@ runIn(){ ...@@ -39,10 +39,13 @@ runIn(){
} }
showUsage(){ showUsage(){
echo "Usage: list [trackers|sites] or list [<trackers|sites> domain]" echo "\nUsage: list [trackers|sites] or list [<trackers|sites> domain]\n"
exit 0
} }
if [ -n "$2" ]; then if [ "$1" = "--help" ]; then
showUsage
elif [ -n "$2" ]; then
if [[ "$1" = "trackers" || "$1" = "sites" ]]; then if [[ "$1" = "trackers" || "$1" = "sites" ]]; then
runIn inspector "coffee stats.coffee --$1 --start=$2 --count=20" runIn inspector "coffee stats.coffee --$1 --start=$2 --count=20"
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment