aboutsummaryrefslogtreecommitdiff
path: root/cmd
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 /cmd
parent2f2239ddd85775f366c0e8f5fcf4bb40d1c09ec8 (diff)
downloadopenweathermap-9c9cd8bf92bc6276811c38a0f9cedb0815af7add.tar.gz
Change -c to -q for the command line utility
Diffstat (limited to 'cmd')
-rw-r--r--cmd/Main.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmd/Main.hs b/cmd/Main.hs
index 6349dde..9fb5eb6 100644
--- a/cmd/Main.hs
+++ b/cmd/Main.hs
@@ -46,7 +46,9 @@ parseLocation = byName <|> byCoord
where
byName =
Client.Name <$>
- strOption (long "city" <> short 'c' <> metavar "CITY" <> help "City name")
+ strOption
+ (long "query" <> short 'q' <> metavar "STRING" <>
+ help "City name, e. g. Santiago or Santiago,CU")
byCoord =
Client.Coord <$>
option