]> dgit.raspbian.org Git - git-annex.git/commit
reject batch options combined with non-batch options
authorJoey Hess <joeyh@joeyh.name>
Wed, 26 Jan 2022 16:59:55 +0000 (12:59 -0400)
committerJoey Hess <joeyh@joeyh.name>
Wed, 26 Jan 2022 17:00:19 +0000 (13:00 -0400)
commit835c50966a6ce4342b158af131176db55bf7a973
tree699fce4f17096172d931028deb3ae44b0bbd3f41
parent56a12eb84cf06a0243f0107364d72dbe3f5d01df
reject batch options combined with non-batch options

Reject combinations of --batch (or --batch-keys) with options like --all or
--key or with filenames.

Most commands ignored the non-batch items when batch mode was enabled.

For some reason, addurl and dropkey both processed first the specified
non-batch items, followed by entering batch mode. Changed them to also
error out, for consistency.

Sponsored-by: Dartmouth College's Datalad project
19 files changed:
CHANGELOG
CmdLine/Batch.hs
Command/Add.hs
Command/AddUrl.hs
Command/Copy.hs
Command/Drop.hs
Command/DropKey.hs
Command/Find.hs
Command/FromKey.hs
Command/Get.hs
Command/Info.hs
Command/MetaData.hs
Command/Move.hs
Command/ReKey.hs
Command/RegisterUrl.hs
Command/RmUrl.hs
Command/SetPresentKey.hs
Command/Whereis.hs
doc/bugs/should_error_on_whereis_--batch-keys_--all.mdwn