mirror of
https://github.com/borgbackup/borg.git
synced 2025-02-26 16:04:06 +00:00
disallow --list with --progress, fixes #7219
This commit is contained in:
parent
e49b60ae59
commit
bdc2dbfc08
1 changed files with 2 additions and 0 deletions
|
@ -384,6 +384,8 @@ def parse_args(self, args=None):
|
||||||
func = get_func(args)
|
func = get_func(args)
|
||||||
if func == self.do_create and args.paths and args.paths_from_stdin:
|
if func == self.do_create and args.paths and args.paths_from_stdin:
|
||||||
parser.error("Must not pass PATH with ``--paths-from-stdin``.")
|
parser.error("Must not pass PATH with ``--paths-from-stdin``.")
|
||||||
|
if args.progress and getattr(args, "output_list", False):
|
||||||
|
parser.error("Options --progress and --list do not play nicely together.")
|
||||||
if func == self.do_create and not args.paths:
|
if func == self.do_create and not args.paths:
|
||||||
if args.content_from_command or args.paths_from_command:
|
if args.content_from_command or args.paths_from_command:
|
||||||
parser.error("No command given.")
|
parser.error("No command given.")
|
||||||
|
|
Loading…
Reference in a new issue