refactor: adjust --location description as certain LLMs insist on a province

This commit is contained in:
sigoden
2024-05-18 09:51:30 +00:00
parent 1ca118a301
commit 2bcd04ec04
+2 -2
View File
@@ -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" "$@")"