wired up global options
Note that I ran into a problem where parsing the global options looped forever, eating memory. It was somehow caused by stacking combineGlobalSetters inside a combineGlobalSetters. Maybe due to both using "many"? Anyway, changed things to avoid that.
This commit is contained in:
parent
adb9fddfdd
commit
b66a2d6c5b
5 changed files with 25 additions and 24 deletions
|
@ -25,8 +25,8 @@ import Types.Messages
|
|||
import Types.DeferredParse
|
||||
|
||||
-- Global options accepted by both git-annex and git-annex-shell sub-commands.
|
||||
commonGlobalOptions :: Parser GlobalSetter
|
||||
commonGlobalOptions = globalSetters
|
||||
commonGlobalOptions :: [Parser GlobalSetter]
|
||||
commonGlobalOptions =
|
||||
[ globalFlag (setforce True)
|
||||
( long "force"
|
||||
<> help "allow actions that may lose annexed data"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue