From b574927ebda36c8617000cb4d65116acfa178f11 Mon Sep 17 00:00:00 2001 From: dbeley <6568955+dbeley@users.noreply.github.com> Date: Fri, 14 Feb 2020 23:51:34 +0100 Subject: [PATCH] Add help -h flag. --- reddit_image_downloader | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reddit_image_downloader b/reddit_image_downloader index a9f1d4a..98eaea2 100755 --- a/reddit_image_downloader +++ b/reddit_image_downloader @@ -16,7 +16,7 @@ sort=$2 number=$3 top_time=$4 -if [ -z $subreddit ]; then +if [ "$1" == "-h" ] || [ -z $subreddit ]; then usage fi