diff options
| -rwxr-xr-x | bin/get_current_weather | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/get_current_weather b/bin/get_current_weather index ad45c5f..47102e0 100755 --- a/bin/get_current_weather +++ b/bin/get_current_weather @@ -2,10 +2,10 @@ set -e # @describe Get the current weather in a given location. -# @option --location! The city and state, e.g. San Francisco, CA +# @option --location! The city and optionally the state or country, e.g., "London", "San Francisco, CA". main() { - curl "https://wttr.in/$(echo "$argc_location" | sed 's/ /+/g')?format=4&M" + curl -fsSL "https://wttr.in/$(echo "$argc_location" | sed 's/ /+/g')?format=4&M" } eval "$(argc --argc-eval "$0" "$@")" |
