diff options
author | W. Trevor King <wking@drexel.edu> | 2009-07-13 07:46:58 -0400 |
---|---|---|
committer | W. Trevor King <wking@drexel.edu> | 2009-07-13 07:46:58 -0400 |
commit | 17adbfb1c04684b986bf2c97cc4fa5197198aadc (patch) | |
tree | d588c5c801e142b59af53b9f9c15e3f9e1982737 /be | |
parent | 197fc012f26816c233b4844c82c32f2efc449fab (diff) | |
download | bugseverywhere-17adbfb1c04684b986bf2c97cc4fa5197198aadc.tar.gz |
Fixed "be --dir --complete"
Diffstat (limited to 'be')
-rwxr-xr-x | be | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -37,6 +37,13 @@ parser.add_option("-d", "--dir", dest="dir", metavar="DIR", try: options,args = parser.parse_args() + for option,value in cmdutil.option_value_pairs(options, parser): + if value == "--complete": + if option == "dir": + if len(args) == 0: + args = ["."] + paths = cmdutil.complete_path(args[0]) + raise cmdutil.GetCompletions(paths) except cmdutil.GetHelp: print cmdutil.help(parser=parser) sys.exit(0) |