Use niceprints.equals_header.
This commit is contained in:
parent
49c23ef4a9
commit
48fd831dc7
1 changed files with 3 additions and 4 deletions
|
@ -16,6 +16,7 @@ import sys
|
||||||
|
|
||||||
from voussoirkit import betterhelp
|
from voussoirkit import betterhelp
|
||||||
from voussoirkit import pathclass
|
from voussoirkit import pathclass
|
||||||
|
from voussoirkit import niceprints
|
||||||
from voussoirkit import operatornotify
|
from voussoirkit import operatornotify
|
||||||
from voussoirkit import spinal
|
from voussoirkit import spinal
|
||||||
from voussoirkit import vlogging
|
from voussoirkit import vlogging
|
||||||
|
@ -33,15 +34,13 @@ def directory_discrepancy_argparse(args):
|
||||||
files1 = set(helper(args.dir1, recurse=args.recurse))
|
files1 = set(helper(args.dir1, recurse=args.recurse))
|
||||||
files2 = set(helper(args.dir2, recurse=args.recurse))
|
files2 = set(helper(args.dir2, recurse=args.recurse))
|
||||||
|
|
||||||
print(f'In "{args.dir1}" but not in "{args.dir2}":')
|
print(niceprints.equals_header(f'In "{args.dir1}" but not in "{args.dir2}"'))
|
||||||
print('=============================')
|
|
||||||
for discrepancy in sorted(files1.difference(files2)):
|
for discrepancy in sorted(files1.difference(files2)):
|
||||||
print(discrepancy)
|
print(discrepancy)
|
||||||
|
|
||||||
print()
|
print()
|
||||||
|
|
||||||
print(f'In "{args.dir2}" but not in "{args.dir1}":')
|
print(niceprints.equals_header(f'In "{args.dir2}" but not in "{args.dir1}"'))
|
||||||
print('=============================')
|
|
||||||
for discrepancy in sorted(files2.difference(files1)):
|
for discrepancy in sorted(files2.difference(files1)):
|
||||||
print(discrepancy)
|
print(discrepancy)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue