Revision ecebe9f6 htools/Ganeti/HTools/CLI.hs

b/htools/Ganeti/HTools/CLI.hs
256 256
       return $ opts { optSpindleUse = Just su })
257 257
    "SPINDLES") "select how many virtual spindle instances use\
258 258
                \ [default read from cluster]",
259
   OptComplNumeric)
259
   OptComplFloat)
260 260

  
261 261
oSelInst :: OptType
262 262
oSelInst =
......
354 354
       return $ opts { optMcpu = Just mcpu }) "RATIO")
355 355
   "maximum virtual-to-physical cpu ratio for nodes (from 0\
356 356
   \ upwards) [default read from cluster]",
357
   OptComplNumeric)
357
   OptComplFloat)
358 358

  
359 359
oMaxSolLength :: OptType
360 360
oMaxSolLength =
......
364 364
   "cap the solution at this many balancing or allocation \
365 365
   \ rounds (useful for very unbalanced clusters or empty \
366 366
   \ clusters)",
367
   OptComplNumeric)
367
   OptComplInteger)
368 368

  
369 369
oMinDisk :: OptType
370 370
oMinDisk =
......
372 372
   (reqWithConversion (tryRead "min free disk space")
373 373
    (\n opts -> Ok opts { optMdsk = n }) "RATIO")
374 374
   "minimum free disk space for nodes (between 0 and 1) [0]",
375
   OptComplNumeric)
375
   OptComplFloat)
376 376

  
377 377
oMinGain :: OptType
378 378
oMinGain =
......
380 380
   (reqWithConversion (tryRead "min gain")
381 381
    (\g opts -> Ok opts { optMinGain = g }) "DELTA")
382 382
   "minimum gain to aim for in a balancing step before giving up",
383
   OptComplNumeric)
383
   OptComplFloat)
384 384

  
385 385
oMinGainLim :: OptType
386 386
oMinGainLim =
......
388 388
   (reqWithConversion (tryRead "min gain limit")
389 389
    (\g opts -> Ok opts { optMinGainLim = g }) "SCORE")
390 390
   "minimum cluster score for which we start checking the min-gain",
391
   OptComplNumeric)
391
   OptComplFloat)
392 392

  
393 393
oMinScore :: OptType
394 394
oMinScore =
......
396 396
   (reqWithConversion (tryRead "min score")
397 397
    (\e opts -> Ok opts { optMinScore = e }) "EPSILON")
398 398
   "mininum score to aim for",
399
   OptComplNumeric)
399
   OptComplFloat)
400 400

  
401 401
oNoHeaders :: OptType
402 402
oNoHeaders =

Also available in: Unified diff