diff --git a/weather.sh b/weather.sh new file mode 100755 index 0000000..0c00e51 --- /dev/null +++ b/weather.sh @@ -0,0 +1,24 @@ +#!/bin/bash +# weather.sh + +program=Weather +year=2024 +developer=dee-mee + +case $1 in +-h | --help) + echo "$program $version" + echo "Copyright $year $developer. All rights reserved." + echo + echo "Usage: weather [options]" + echo "Option Long Option Description" + echo "-h --help Show the help screen" + echo "-l [location] --location [location] Specifies the location" + ;; +-l | --location) + curl https://wttr.in/$2 + ;; +*) + curl https://wttr.in + ;; +esac