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
|
@ -23,9 +23,12 @@ import Annex.Notification
|
|||
import qualified Data.Set as S
|
||||
|
||||
cmd :: [Command]
|
||||
cmd = [withOptions [dropFromOption] $ command "drop" paramPaths seek
|
||||
cmd = [withOptions (dropOptions) $ command "drop" paramPaths seek
|
||||
SectionCommon "indicate content of files not currently wanted"]
|
||||
|
||||
dropOptions :: [Option]
|
||||
dropOptions = dropFromOption : annexedMatchingOptions
|
||||
|
||||
dropFromOption :: Option
|
||||
dropFromOption = fieldOption ['f'] "from" paramRemote "drop content from a remote"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue