On Wed, Feb 09, 2005 at 07:45:19PM +0200, Vassilii Khachaturov wrote: > Here is a transcript: > > [EMAIL PROTECTED]:~$ darcs trackdown --he[TAB pressed] > darcs failed: Can't run command trackdown here. > You need to be in a repository directory to run this command. > [output paused, ENTER pressed]
The problem here is that the bash completion calls darcs trackdown --list-options to find out what flags exist, but this command fails because darcs trackdown itself may only be run in a repository. So the fix is to make --list-options able to run (as is the case with --help) even when in a situation where the command itself cannot be run. This isn't entirely trivial, since some features (e.g. completing for pull using the repositories in _darcs/prefs/repos) won't work if you aren't in a repository. Still, this shouldn't be *too* hard to fix. -- David Roundy http://civet.berkeley.edu/droundy/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]