summaryrefslogtreecommitdiff
path: root/generate-random-word-from-wikipedia.sh
diff options
context:
space:
mode:
Diffstat (limited to 'generate-random-word-from-wikipedia.sh')
-rwxr-xr-xgenerate-random-word-from-wikipedia.sh5
1 files changed, 5 insertions, 0 deletions
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