support --backend again in addurl and importfeed

Missed these two when converting from a global option.

Sponsored-by: Dartmouth College's Datalad project
This commit is contained in:
Joey Hess 2022-07-05 15:34:49 -04:00
parent d01530ac21
commit 149d12f188
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
5 changed files with 17 additions and 2 deletions

View file

@ -37,7 +37,12 @@ import Network.URI
import qualified System.FilePath.ByteString as P import qualified System.FilePath.ByteString as P
cmd :: Command cmd :: Command
cmd = notBareRepo $ withAnnexOptions [jobsOption, jsonOptions, jsonProgressOption] $ cmd = notBareRepo $ withAnnexOptions
[ jobsOption
, jsonOptions
, jsonProgressOption
, backendOption
] $
command "addurl" SectionCommon "add urls to annex" command "addurl" SectionCommon "add urls to annex"
(paramRepeating paramUrl) (seek <$$> optParser) (paramRepeating paramUrl) (seek <$$> optParser)

View file

@ -51,7 +51,7 @@ import qualified Annex.Branch
import Logs import Logs
cmd :: Command cmd :: Command
cmd = notBareRepo $ cmd = notBareRepo $ withAnnexOptions [backendOption] $
command "importfeed" SectionCommon "import files from podcast feeds" command "importfeed" SectionCommon "import files from podcast feeds"
(paramRepeating paramUrl) (seek <$$> optParser) (paramRepeating paramUrl) (seek <$$> optParser)

View file

@ -25,3 +25,5 @@ Sample logs could be found at https://github.com/datalad/git-annex/runs/71238681
[[!meta author=yoh]] [[!meta author=yoh]]
[[!tag projects/datalad]] [[!tag projects/datalad]]
> [[fixed|done]] --[[Joey]]

View file

@ -136,6 +136,10 @@ be used to get better filenames.
Messages that would normally be output to standard error are included in Messages that would normally be output to standard error are included in
the json instead. the json instead.
* `--backend`
Specifies which key-value backend to use.
* Also the [[git-annex-common-options]](1) can be used. * Also the [[git-annex-common-options]](1) can be used.
# CAVEATS # CAVEATS

View 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 url to a file that would be ignored. This makes such files be added
despite any ignores. despite any ignores.
* `--backend`
Specifies which key-value backend to use.
* Also the [[git-annex-common-options]](1) can be used. * Also the [[git-annex-common-options]](1) can be used.
# SEE ALSO # SEE ALSO