Florent Becker <bugs@darcs.net> writes:
>> + if (not . isFile) fromDir && Packs `elem` opts && NoPacks `notElem`
> By the way, using (Packs `elem` opts && NoPacks `notElem` opts) is
> probably not what you want: you want to give priority to whichever
> flag is passed last on the command line. Ie, if i put --no-packs in
> my _darcs/prefs, I should be able to override it later on the
> command-line. Can you fix that in a followup? You can use getBoolFlag
> from Flags.hs for that.
If it's an "exclusive" flag, it doesn't really matter, since the
(No)Packs elements are nub-ed, so you never get both. Hopefully, we can
clear the option parsing issues soon enough (cmdlib has seen more work
recently thanks to Eric's endeavours with it; I believe it would be
feasible in maybe a couple of weeks to try to port darcs over;
unfortunately, it is going to be a huge mass of changes and probably not
very incremental).
Yours,
Petr.
|