diff options
-rwxr-xr-x | generate-random-word-from-wikipedia.sh | 5 |
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 |