htools: fix long version of --port for daemons
authorIustin Pop <iustin@google.com>
Mon, 19 Mar 2012 09:55:19 +0000 (10:55 +0100)
committerIustin Pop <iustin@google.com>
Mon, 19 Mar 2012 10:00:26 +0000 (11:00 +0100)
The dashes do not need to be in, if they are then the resulting option
is:

  -p PORT  ----port=PORT     Network port (default: 1814)

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: RenĂ© Nussbaumer <rn@google.com>

htools/Ganeti/Daemon.hs

index a88ffe8..84568f9 100644 (file)
@@ -125,7 +125,7 @@ oNoUserChecks = Option "" ["no-user-checks"]
          "Ignore user checks"
 
 oPort :: Int -> OptType
-oPort def = Option "p" ["--port"]
+oPort def = Option "p" ["port"]
             (reqWithConversion (tryRead "reading port")
              (\port opts -> Ok opts { optPort = Just port }) "PORT")
             ("Network port (default: " ++ show def ++ ")")