Revision f183de56

b/htools/Ganeti/HTools/IAlloc.hs
347 347
-- | Reads the request from the data file(s).
348 348
readRequest :: FilePath -> IO Request
349 349
readRequest fp = do
350
  input_data <- readFile fp
350
  input_data <- case fp of
351
                  "-" -> getContents
352
                  _   -> readFile fp
351 353
  case parseData input_data of
352 354
    Bad err -> do
353 355
      hPutStrLn stderr $ "Error: " ++ err
b/man/hail.rst
24 24
response. In case of critical failures, the error message is printed
25 25
on stderr and the exit code is changed to show failure.
26 26

  
27
If the input file name is ``-`` (a single minus sign), then the request
28
data will be read from *stdin*.
29

  
27 30
ALGORITHM
28 31
~~~~~~~~~
29 32

  

Also available in: Unified diff