"""Recursively process files in directory, considering tab stops."""
extensions=tuple(extensions)
forroot,dirs,filesinos.walk(directory):
forfileinfiles:
iffile.endswith(extensions):
file_path=os.path.join(root,file)
print(f"Processing {file_path}")
convert_tabs_to_spaces(file_path,tab_stop)
defmain():
parser=argparse.ArgumentParser(description='Convert tabs to spaces in files, considering tab stops.')
parser.add_argument('-e','--extensions',type=str,default='cpp,h,hpp,inl,cmake',help='Comma-separated list of file extensions to process (default: "cpp,h,hpp,inl,cmake")')