From ad43f0362688a601ba43f462e80f5a91bf398c02 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 5 Jan 2012 22:48:59 -0400 Subject: per-command options Finally commands can define their own options. Moved --format and --print0 to be options only of find. --- Types/Option.hs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Types/Option.hs (limited to 'Types/Option.hs') 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 + - + - 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 ()) -- cgit v1.2.3