support --backend again in addurl and importfeed
authorJoey Hess <joeyh@joeyh.name>
Tue, 5 Jul 2022 19:34:49 +0000 (15:34 -0400)
committerJoey Hess <joeyh@joeyh.name>
Tue, 5 Jul 2022 19:35:43 +0000 (15:35 -0400)
Missed these two when converting from a global option.

Sponsored-by: Dartmouth College's Datalad project
Command/AddUrl.hs
Command/ImportFeed.hs
doc/bugs/return_--backend_for_addurl___63___.mdwn
doc/git-annex-addurl.mdwn
doc/git-annex-importfeed.mdwn

index 371624c065fde1d7ee4a9f7749b31ce535b7c945..4bfa5767a4b83b639eaab9e094f7f8fb6680275f 100644 (file)
@@ -37,7 +37,12 @@ import Network.URI
 import qualified System.FilePath.ByteString as P
 
 cmd :: Command
-cmd = notBareRepo $ withAnnexOptions [jobsOption, jsonOptions, jsonProgressOption] $
+cmd = notBareRepo $ withAnnexOptions 
+       [ jobsOption
+       , jsonOptions
+       , jsonProgressOption
+       , backendOption
+       ] $
        command "addurl" SectionCommon "add urls to annex"
                (paramRepeating paramUrl) (seek <$$> optParser)
 
index c910bbcf0371d0b54e28bd8e068004f885c14af6..816db0169102e084e3ac0d4c78ea0eb8caf26efe 100644 (file)
@@ -51,7 +51,7 @@ import qualified Annex.Branch
 import Logs
 
 cmd :: Command
-cmd = notBareRepo $
+cmd = notBareRepo $ withAnnexOptions [backendOption] $
        command "importfeed" SectionCommon "import files from podcast feeds"
                (paramRepeating paramUrl) (seek <$$> optParser)
 
index d0ccd2353278052855e6aa757e6af996fdb2471f..c7b5351f948f08ca1466c48c200343a07a960443 100644 (file)
@@ -25,3 +25,5 @@ Sample logs could be found at https://github.com/datalad/git-annex/runs/71238681
 
 [[!meta author=yoh]]
 [[!tag projects/datalad]]
+
+> [[fixed|done]] --[[Joey]]
index 4624655ff635062cd295d79374d167675b81eaf2..6db51206a0b969394a7e51b20afa48515dfdf082 100644 (file)
@@ -136,6 +136,10 @@ be used to get better filenames.
   Messages that would normally be output to standard error are included in
   the json instead.
 
+* `--backend`
+
+  Specifies which key-value backend to use.
+
 * Also the [[git-annex-common-options]](1) can be used.
 
 # CAVEATS
index 08ce5334d7cba9e7d46637ac19f4156bc7ea1866..0ae2f3ee53ca40f86bc3081485a72e5489aabc77 100644 (file)
@@ -102,6 +102,10 @@ resulting in the new url being downloaded to such a filename.
   url to a file that would be ignored. This makes such files be added
   despite any ignores.
 
+* `--backend`
+
+  Specifies which key-value backend to use.
+
 * Also the [[git-annex-common-options]](1) can be used.
 
 # SEE ALSO