INNER CODE UNIT · Python
main
DataTalksClub/datatalksclub.github.io · scripts/add_dateadded_from_git.py:242
def main():
parser = argparse.ArgumentParser(
description='Add dateadded field to podcast files based on git history',
formatter_class=argparse.RawDescriptionHelpFormatter,
epilog="""
Examples:
# Process specific files
python add_dateadded_from_git.py _podcast/s01e01-roles.md _podcast/s01e02-processes.md
# Process all files in a directory
python add_dateadded_from_git.py --all-in-dir _podcast/
# Process all podcast files
python add_dateadded_from_git.py --all
# Dry run to see what would be done
python add_dateadded_from_git.py --all --dry-run