#!/bin/sh
print_help_and_exit() {
	echo "Usage: ./print-loc"
	exit 1
}

# main()
if [ "$1" = "--help" ]; then
	print_help_and_exit
fi
cloc --exclude-dir vendor .
if [ $? -ne 0 ]; then
	echo "Error: require cloc program. Try sudo apt-get install -y cloc"
fi
