Please describe the problem.
AFAIK --all
option for whereis
is "incompatible" with operation on keys, so git-annex
does still error out on --all --key KEY
:
$> git annex whereis --json --json-error-messages --key MD5E-s5663237--4608ffbd6b78ce3a325eb338fa556589.nii.gz --all
Invalid option `--all'
...
but it does not error out if I specify --all
with --batch-keys
:
$> git annex whereis --json --json-error-messages --all --batch-keys
MD5E-s5663237--4608ffbd6b78ce3a325eb338fa556589.nii.gz
{"command":"whereis","note":"2 copies\n\t8d2b6e96-ad81-44a5-99b4-0ec37d6b3800 -- [s3-PUBLIC]\n \tb5dd2e3d-825f-4bc2-b719-cba1059f6bfc -- root@93184394ac19:/datalad/ds000001\n\ns3-PUBLIC: https://s3.amazonaws.com/openneuro.org/ds000001/sub-01/anat/sub-01_T1w.nii.gz?versionId=SHOhSfza0LCFpgctRH3sMZ8iwAGSUwIy\n","success":true,"input":["MD5E-s5663237--4608ffbd6b78ce3a325eb338fa556589.nii.gz"],"untrusted":[],"key":"MD5E-s5663237--4608ffbd6b78ce3a325eb338fa556589.nii.gz","whereis":[{"here":false,"uuid":"8d2b6e96-ad81-44a5-99b4-0ec37d6b3800","urls":["https://s3.amazonaws.com/openneuro.org/ds000001/sub-01/anat/sub-01_T1w.nii.gz?versionId=SHOhSfza0LCFpgctRH3sMZ8iwAGSUwIy"],"description":"[s3-PUBLIC]"},{"here":false,"uuid":"b5dd2e3d-825f-4bc2-b719-cba1059f6bfc","urls":[],"description":"root@93184394ac19:/datalad/ds000001"}],"error-messages":[],"file":null}
^C
What version of git-annex are you using? On what operating system?
8.20211231+git140-gc3817495f-1~ndall+1
More generally, --all and --key are ignored when using --batch or --batch-keys, by probably all commands that implement them.
Mixing --batch options with file names also ignores the file names.