From 4fbf7d38ce729c46dbd37e3f6bfb286fc9a6bfdb Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 10 Jan 2019 10:42:22 +0100 Subject: generate-random-word-from-wikipedia.sh: add help text --- generate-random-word-from-wikipedia.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/generate-random-word-from-wikipedia.sh b/generate-random-word-from-wikipedia.sh index fbc720f..447cc81 100755 --- a/generate-random-word-from-wikipedia.sh +++ b/generate-random-word-from-wikipedia.sh @@ -2,6 +2,11 @@ base_dir=$(readlink -f "$(dirname "$0")") +if [ $# -ne 3 ]; then + >&2 printf 'usage: %s wiki-depth markov-depth word-count\n' "${0##*/}" + exit 1 +fi + depth=$1 shift -- cgit v1.2.3-70-g09d2