This commit is contained in:
2022-02-25 13:55:53 +00:00
parent 14f7396e22
commit e814e7b9ea
3 changed files with 10 additions and 12 deletions
+7 -8
View File
@@ -9,21 +9,20 @@ You will need a OpenWeather API-Key. This can be done by opening a free account
./go-weather -h
```
Will give:
```
Usage of go-weather:
```text
Usage of ./go-weather:
-api string
Enter Code e.g. uk, us etc... Default(none) (default "none")
Enter you api key here (default "none")
-city string
Enter city e.g. London, Glasgow etc... (Default: London) (default "London")
Enter city e.g. London (default "London")
-code string
Enter Code e.g. uk, us etc... (Default: uk) (default "uk")
Enter Code e.g. uk (default "uk")
```
Running the command in a terminal like so:
```
./go-weather -api=API-KEY -city=Glasgow -code=uk
```
Will give:
**Will give:**
```
02/17/2022 17:03
📍Location: Glasgow, GB