The file matching options are now only accepted by commands that can actually use them.
This commit is contained in:
parent
52424dc382
commit
8066a1c3cc
24 changed files with 118 additions and 77 deletions
|
@ -35,9 +35,11 @@ import Utility.Tmp
|
|||
import Control.Exception (IOException)
|
||||
|
||||
cmd :: [Command]
|
||||
cmd = [notBareRepo $ withOptions [includeDotFilesOption] $
|
||||
command "add" paramPaths seek SectionCommon
|
||||
"add files to annex"]
|
||||
cmd = [notBareRepo $ withOptions addOptions $
|
||||
command "add" paramPaths seek SectionCommon "add files to annex"]
|
||||
|
||||
addOptions :: [Option]
|
||||
addOptions = includeDotFilesOption : fileMatchingOptions
|
||||
|
||||
includeDotFilesOption :: Option
|
||||
includeDotFilesOption = flagOption [] "include-dotfiles" "don't skip dotfiles"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue