INNER CODE UNIT · Python
main
crocs-muni/javacard-curated-list · scripts/process_curated_list.py:771
def main():
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument("source", nargs="?", default=README_URL,
help="Curated list source: a URL (default: the live crocs-muni/javacard-curated-list "
"README on GitHub) or a local markdown file")
parser.add_argument("--sanity", action="store_true",
help="Check the file for badge issues (missing badges, badge/link mismatches, "
"unresolvable stars/last-commit/developers) instead of building the CSV/report")
parser.add_argument("--offline", action="store_true",
help="With --sanity, skip live shields.io lookups and only run the structural checks")
parser.add_argument("--add-license", action="store_true",
help="For each entry with a numcontributors badge, insert a shields.io license badge "
"right after it (using the same owner/repo as the entry's other badges). Entries "
"without a numcontributors badge are left untouched. Rewrites the source file in "
"place, so it only works with a local file path, not a URL.")
args = parser.parse_args()
if args.add_license: