From 2bcd04ec047519f490350a0bf08e425d6abe7564 Mon Sep 17 00:00:00 2001 From: sigoden Date: Sat, 18 May 2024 09:51:30 +0000 Subject: refactor: adjust --location description as certain LLMs insist on a province --- bin/get_current_weather | 4 ++-- 1 file 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" "$@")" -- cgit v1.2.3