module Darcs.Commands.ShowBug ( showBug ) where
import Darcs.Commands ( DarcsCommand(..), nodefaults )
import Darcs.Arguments ( DarcsFlag, workingRepoDir )
import Darcs.Repository ( findRepository )
#include "impossible.h"
showBugDescription :: String
showBugDescription = "Simulate a run-time failure."
showBugHelp :: String
showBugHelp =
"Show bug can be used to see what darcs would show you if you encountered.\n"
++"a bug in darcs.\n"
showBug :: DarcsCommand
showBug = DarcsCommand {commandProgramName = "darcs",
commandName = "bug",
commandHelp = showBugHelp,
commandDescription = showBugDescription,
commandExtraArgs = 0,
commandExtraArgHelp = [],
commandCommand = showBugCmd,
commandPrereq = findRepository,
commandGetArgPossibilities = return [],
commandArgdefaults = nodefaults,
commandAdvancedOptions = [],
commandBasicOptions = [workingRepoDir]}
showBugCmd :: [DarcsFlag] -> [String] -> IO ()
showBugCmd _ _ = bug "This is actually a fake bug in darcs."