From 149d12f1889bad0946b86cb639649f6ef93696e8 Mon Sep 17 00:00:00 2001
From: Joey Hess <joeyh@joeyh.name>
Date: Tue, 5 Jul 2022 15:34:49 -0400
Subject: [PATCH] support --backend again in addurl and importfeed

Missed these two when converting from a global option.

Sponsored-by: Dartmouth College's Datalad project
---
 Command/AddUrl.hs                                 | 7 ++++++-
 Command/ImportFeed.hs                             | 2 +-
 doc/bugs/return_--backend_for_addurl___63___.mdwn | 2 ++
 doc/git-annex-addurl.mdwn                         | 4 ++++
 doc/git-annex-importfeed.mdwn                     | 4 ++++
 5 files changed, 17 insertions(+), 2 deletions(-)

diff --git a/Command/AddUrl.hs b/Command/AddUrl.hs
index 371624c065..4bfa5767a4 100644
--- a/Command/AddUrl.hs
+++ b/Command/AddUrl.hs
@@ -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)
 
diff --git a/Command/ImportFeed.hs b/Command/ImportFeed.hs
index c910bbcf03..816db01691 100644
--- a/Command/ImportFeed.hs
+++ b/Command/ImportFeed.hs
@@ -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)
 
diff --git a/doc/bugs/return_--backend_for_addurl___63___.mdwn b/doc/bugs/return_--backend_for_addurl___63___.mdwn
index d0ccd23532..c7b5351f94 100644
--- a/doc/bugs/return_--backend_for_addurl___63___.mdwn
+++ b/doc/bugs/return_--backend_for_addurl___63___.mdwn
@@ -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]]
diff --git a/doc/git-annex-addurl.mdwn b/doc/git-annex-addurl.mdwn
index 4624655ff6..6db51206a0 100644
--- a/doc/git-annex-addurl.mdwn
+++ b/doc/git-annex-addurl.mdwn
@@ -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
diff --git a/doc/git-annex-importfeed.mdwn b/doc/git-annex-importfeed.mdwn
index 08ce5334d7..0ae2f3ee53 100644
--- a/doc/git-annex-importfeed.mdwn
+++ b/doc/git-annex-importfeed.mdwn
@@ -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