aboutsummaryrefslogblamecommitdiffstats
path: root/.be/bea86499-824e-4e77-b085-2d581fa9ccab/bugs/8e1bbda4-35b6-4579-849d-117b1596ee99/comments/bf0c3752-6338-4919-93ba-4c9252945fb1/body
blob: bb443b82f3db2dfe5f10baa459ff9ebc111f7c57 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15














                                                                                          
For example:
  $ be list --status --options
    File "/home/wking/bin/be", line 35, in <module>
      sys.exit(cmdutil.execute(sys.argv[1], sys.argv[2:]))
    File "/home/wking/lib/python2.5/site-packages/libbe/cmdutil.py", line 67, in execute
      get_command(cmd).execute([a.decode(enc) for a in args])
    File "/home/wking/lib/python2.5/site-packages/becommands/list.py", line 36, in execute
      raise Exception, "parsed options"
  Exception: parsed options

The reason for this is that --status takes an argument, so 'be list'
thinks it should list all the bugs with status == "--options".
Ideally what should happen is that an argument-taking option would
check for argument --options, and if so, would raise an exception
returning a list of appropriate completions *for that argument*.