diff options
author | Joey Hess <joey@kitenet.net> | 2012-01-05 22:48:59 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2012-01-05 23:11:07 -0400 |
commit | ad43f0362688a601ba43f462e80f5a91bf398c02 (patch) | |
tree | 550788062a775eb6b2c2c087052993aa10435875 /Types/Option.hs | |
parent | 47be4383b714320c9e3f49cc23315101fad5735b (diff) |
per-command options
Finally commands can define their own options.
Moved --format and --print0 to be options only of find.
Diffstat (limited to 'Types/Option.hs')
-rw-r--r-- | Types/Option.hs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Types/Option.hs b/Types/Option.hs new file mode 100644 index 000000000..036257838 --- /dev/null +++ b/Types/Option.hs @@ -0,0 +1,17 @@ +{- git-annex command options + - + - Copyright 2011 Joey Hess <joey@kitenet.net> + - + - Licensed under the GNU GPL version 3 or higher. + -} + +module Types.Option where + +import System.Console.GetOpt + +import Annex + +{- Each dashed command-line option results in generation of an action + - in the Annex monad that performs the necessary setting. + -} +type Option = OptDescr (Annex ()) |