Revision eb980c5a

b/autotools/build-bash-completion
292 292
        suggest = opt.choices
293 293

  
294 294
      if (isinstance(suggest, (int, long)) and
295
          suggest in cli.OPT_COMPL_PARAMS):
296
        # We do not provide parameter completion yet
297
        continue
298
      elif (isinstance(suggest, (int, long)) and
295 299
          suggest in cli.OPT_COMPL_ALL):
296 300
        key = suggest
297 301
      elif suggest:
......
378 382
          sw.Write("done")
379 383

  
380 384
          WriteCompReply(sw, "-P \"$pfx\" -W \"$tmp\"", cur="\"$curvalue\"")
381
        elif suggest not in cli.OPT_COMPL_ALL:
385
        else:
382 386
          WriteCompReply(sw, "-W %s" % utils.ShellQuote(suggest), cur=cur)
383 387
      finally:
384 388
        sw.DecIndent()
b/lib/cli.py
574 574
  OPT_COMPL_BACKEND_PARAMS,
575 575
  ])
576 576

  
577
#XXX: really fix build-bash-completion to handle these
578
OPT_COMPL_PARAMS = frozenset([
579
  OPT_COMPL_NIC_PARAMS,
580
  OPT_COMPL_DISK_PARAMS,
581
  OPT_COMPL_BACKEND_PARAMS,
582
  ])
583

  
577 584

  
578 585
class CliOption(Option):
579 586
  """Custom option class for optparse.

Also available in: Unified diff