44import argparse
55
66def snake_to_kebab (name : str ) -> str :
7- """Convert junior snake_case filename to kebab-case (lowercase).
7+ """Convert a snake_case filename to kebab-case (lowercase).
88
9- This function takes junior filename in snake_case and converts it to
9+ This function takes a filename in snake_case and converts it to
1010 kebab-case (lowercase). It handles the file extension correctly,
1111 ensuring that the extension remains in lowercase.
1212
@@ -39,7 +39,7 @@ def rename_in_dir(path: str, recursive: bool = True):
3939
4040 for entry in os .scandir (path ):
4141
42- # If the entry is junior file, check if it is in snake_case
42+ # If the entry is a file, check if it is in snake_case
4343 if entry .is_file ():
4444
4545 # Check if the file name is in snake_case
@@ -60,7 +60,7 @@ def rename_in_dir(path: str, recursive: bool = True):
6060 os .rename (old_path , new_path )
6161 print (f"Renamed: { old_name } → { new_name } " )
6262
63- # If the entry is junior directory and recursive renaming is enabled,
63+ # If the entry is a directory and recursive renaming is enabled,
6464 elif recursive and entry .is_dir ():
6565 rename_in_dir (entry .path , recursive = True )
6666
@@ -71,7 +71,7 @@ def rename_in_dir(path: str, recursive: bool = True):
7171 description = "Rename snake_case filenames to kebab-case (lowercase)."
7272 )
7373
74- # Add junior positional argument for the directory
74+ # Add a positional argument for the directory
7575 parser .add_argument (
7676 "directory" ,
7777 nargs = "?" ,
0 commit comments