aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2020-04-20 11:15:04 +0200
committerIgor Pashev <pashev.igor@gmail.com>2020-04-20 11:16:38 +0200
commit9c9cd8bf92bc6276811c38a0f9cedb0815af7add (patch)
tree98e7d75e006d8389b3699e26404fd03c2f75dc21 /README.md
parent2f2239ddd85775f366c0e8f5fcf4bb40d1c09ec8 (diff)
downloadopenweathermap-9c9cd8bf92bc6276811c38a0f9cedb0815af7add.tar.gz
Change -c to -q for the command line utility
Diffstat (limited to 'README.md')
-rw-r--r--README.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/README.md b/README.md
index 5269074..9de008a 100644
--- a/README.md
+++ b/README.md
@@ -23,14 +23,14 @@ Usage
```
Usage: openweathermap [(-K|--api-key-file APIKEYFILE) | (-k|--api-key APIKEY)]
- ((-c|--city CITY) | --lat NUM --lon NUM)
+ ((-q|--query STRING) | --lat NUM --lon NUM)
[(-n|--current) | (-f|--forecast)] [-d|--debug]
Available options:
-K,--api-key-file APIKEYFILE
Read API key from this file
-k,--api-key APIKEY API key
- -c,--city CITY City name
+ -q,--query STRING City name, e. g. Santiago or Santiago,CU
--lat NUM Latitude in decimal degrees
--lon NUM Longitude in decimal degrees
-n,--current current weather (default)
@@ -49,13 +49,13 @@ Examples
--------
```
-$ openweathermap -c norilsk
+$ openweathermap -q norilsk
Norilsk,RU (69.35°, 88.2°): Clouds, H 100 %, P 753 mmHg, T +4 °C, ↓ 1 m/s
$ openweathermap --lat 55.7522200 --lon 37.6155600
Moscow,RU (55.75°, 37.62°): Clear, H 45 %, P 762 mmHg, T +18..+21 °C, → 4 m/s
-$ openweathermap -c kaliningrad -f
+$ openweathermap -q kaliningrad -f
Kaliningrad,RU (54.7065°, 20.511°)
2020-04-19 17:00:00 +0200: Clear, H 66 %, P 767 mmHg, T +7 °C, ↓ 7 m/s
2020-04-19 20:00:00 +0200: Clear, H 79 %, P 768 mmHg, T +4 °C, ↓ 5 m/s