refactor: adjust --location description as certain LLMs insist on a province
This commit is contained in:
@@ -2,10 +2,10 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
# @describe Get the current weather in a given location.
|
# @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() {
|
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" "$@")"
|
eval "$(argc --argc-eval "$0" "$@")"
|
||||||
|
|||||||
Reference in New Issue
Block a user