Skip to content

Commit

Permalink
Added note to arg parser description.
Browse files Browse the repository at this point in the history
  • Loading branch information
mwdle committed Aug 16, 2024
1 parent faecd15 commit 5f20be5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion normalizeNames.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def rename_files(root_folder):
rename_item(root, os.path.join(root, filename), new_name)

if __name__ == "__main__":
parser = argparse.ArgumentParser(description="This script allows you to quickly and easily replace or remove 'illegal' characters from filenames and foldernames in a specific a folder and subfolders that break sync compatibility between devices using different filesystem conventions. A practical use of this application is bulk renaming stored music folders/files to enable portability and syncing of a music library across devices without file system compatibility issues. This program does *NOT* modify music metadata, just filenames/foldernames. By default, this application will intelligently replace colons ':' with dashes '-' and proper surrounding spacing, replace quotation marks '\"' with single quotes ', remove trailing periods '.', and remove any other characters defined in the illegal characters list at the top of the normalizeNames.py file. All of the aforementioned behavior can be easily overridden/modified in the repair_illegal_name() method and illegal characters list.")
parser = argparse.ArgumentParser(description="This script allows you to quickly and easily replace or remove 'illegal' characters from filenames and foldernames in a specific a folder and subfolders that break sync compatibility between devices using different filesystem conventions. A practical use of this application is bulk renaming stored music folders/files to enable portability and syncing of a music library across devices without file system compatibility issues. This program does *NOT* modify music metadata, just filenames/foldernames. By default, this application will intelligently replace colons ':' with dashes '-' and proper surrounding spacing, replace quotation marks '\"' with single quotes ', remove trailing periods '.', and remove any other characters defined in the illegal characters list at the top of the normalizeNames.py file. All of the aforementioned behavior can be easily overridden/modified in the repair_illegal_name() method and illegal characters list. All renames will be printed to the console.")
parser.add_argument('root_folder', type=str, help="Path to folder containing music/subfolders to repair names in.")
args = parser.parse_args()
rename_files(args.root_folder)
Expand Down

0 comments on commit 5f20be5

Please sign in to comment.