per-command options
Finally commands can define their own options. Moved --format and --print0 to be options only of find.
This commit is contained in:
parent
47be4383b7
commit
ad43f03626
9 changed files with 162 additions and 87 deletions
17
Types/Option.hs
Normal file
17
Types/Option.hs
Normal file
|
@ -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 ())
|
Loading…
Add table
Add a link
Reference in a new issue