sane-tag-media: rename print-missing subcommand to show-missing, for consistency with show subcommand

This commit is contained in:
2024-07-23 17:53:48 +00:00
parent 5b7244d339
commit 36acc87f30

View File

@@ -69,7 +69,7 @@ tool which runs over a complete music library (or audiobooks, videos, ebooks (li
this tool does NOT move or rename files. it only edits tags.
USAGE: cd MEDIA_LIBRARY_TOP && sane-tag-media [options] fix-paths|fix-tags|print-missing|show [cmd-specific options] DIRECTORY [DIRECTORY ...]
USAGE: cd MEDIA_LIBRARY_TOP && sane-tag-media [options] fix-paths|fix-tags|show-missing|show [cmd-specific options] DIRECTORY [DIRECTORY ...]
scans DIRECTORY and guesses artist/album/title for each file, based on path relative to pwd.
if the guessed tags look more correct than the existing tags (i.e. if the existing file is missing a tag),
@@ -985,9 +985,9 @@ def main():
show_parser.set_defaults(subcommand="show")
show_parser.add_argument("path", nargs="+", help="relative path to a file or directory to show")
print_missing_parser = subparsers.add_parser("print-missing")
print_missing_parser.set_defaults(subcommand="print_missing")
print_missing_parser.add_argument("path", nargs="+", help="relative path to a file or directory to validate tags for")
show_missing_parser = subparsers.add_parser("show-missing")
show_missing_parser.set_defaults(subcommand="show_missing")
show_missing_parser.add_argument("path", nargs="+", help="relative path to a file or directory to validate tags for")
fix_tags_parser = subparsers.add_parser("fix-tags")
fix_tags_parser.set_defaults(subcommand="fix_tags")
@@ -1024,7 +1024,7 @@ def main():
if args.subcommand == "show":
for f, tags in gatherer.files():
tagger.with_base_tags(tags).show(f)
elif args.subcommand == "print_missing":
elif args.subcommand == "show_missing":
for f, tags in gatherer.files():
tagger_ = tagger.with_base_tags(tags)
if not tagger_.is_sufficiently_tagged(f):