mirror of
https://github.com/borgbackup/borg.git
synced 2026-06-13 19:00:44 -04:00
check for the stream --progress uses, not stdin
This commit is contained in:
parent
92ac120fb0
commit
1c0fb82b59
1 changed files with 1 additions and 1 deletions
|
|
@ -677,7 +677,7 @@ Type "Yes I am sure" if you understand this and want to continue.\n""")
|
|||
subparser.add_argument('-s', '--stats', dest='stats',
|
||||
action='store_true', default=False,
|
||||
help='print statistics for the created archive')
|
||||
subparser.add_argument('-p', '--progress', dest='progress', const=not sys.stdin.isatty(),
|
||||
subparser.add_argument('-p', '--progress', dest='progress', const=not sys.stderr.isatty(),
|
||||
action='store_const', default=sys.stdin.isatty(),
|
||||
help="""toggle progress display while creating the archive, showing Original,
|
||||
Compressed and Deduplicated sizes, followed by the Number of files seen
|
||||
|
|
|
|||
Loading…
Reference in a new issue