wttr: Trim example section. Add evil return code.

This commit is contained in:
Hyperling 2021-03-02 06:58:53 -06:00
parent ed16e4d4cf
commit ef5de65f1a

View File

@ -100,12 +100,12 @@
Any "-" paramaters call the usage since this function does not take any options. Any "-" paramaters call the usage since this function does not take any options.
Location is optional since the API can determine your connection'"'"'s location. Location is optional since the API can determine your connection'"'"'s location.
Useful location types: Useful location types:
$zip_code | Ex: 12345 $zip_code | Ex: 12345
$city,$state | Ex: Austin,Texas $city,$state | Ex: Austin,Texas
@$domain_dot_extension | Ex: @github.com @$domain_dot_extension | Ex: @github.com
~$attraction_or_special_location | Ex: ~Manitou Incline ~$special_location | Ex: ~Manitou Incline
Full documentation: https://github.com/chubin/wttr.in' Full documentation: https://github.com/chubin/wttr.in'
return return 1
fi fi
curl "https://wttr.in/${1//\ /+}" curl "https://wttr.in/${1//\ /+}"
} }