()
| 5 | |
| 6 | |
| 7 | def main() -> None: |
| 8 | baseurl = "" |
| 9 | |
| 10 | class bcolors: |
| 11 | HEADER = "\033[95m" |
| 12 | OKBLUE = "\033[94m" |
| 13 | OKGREEN = "\033[92m" |
| 14 | WARNING = "\033[93m" |
| 15 | FAIL = "\033[91m" |
| 16 | ENDC = "\033[0m" |
| 17 | BOLD = "\033[1m" |
| 18 | UNDERLINE = "\033[4m" |
| 19 | |
| 20 | p = argparse.ArgumentParser() |
| 21 | p.add_argument( |
| 22 | "--default-image-alt", |
| 23 | dest="default_image_alt", |
| 24 | default=config.DEFAULT_IMAGE_ALT, |
| 25 | help="The default alt string for images with missing ones", |
| 26 | ) |
| 27 | p.add_argument( |
| 28 | "--pad-tables", |
| 29 | dest="pad_tables", |
| 30 | action="store_true", |
| 31 | default=config.PAD_TABLES, |
| 32 | help="pad the cells to equal column width in tables", |
| 33 | ) |
| 34 | p.add_argument( |
| 35 | "--no-wrap-links", |
| 36 | dest="wrap_links", |
| 37 | action="store_false", |
| 38 | default=config.WRAP_LINKS, |
| 39 | help="don't wrap links during conversion", |
| 40 | ) |
| 41 | p.add_argument( |
| 42 | "--wrap-list-items", |
| 43 | dest="wrap_list_items", |
| 44 | action="store_true", |
| 45 | default=config.WRAP_LIST_ITEMS, |
| 46 | help="wrap list items during conversion", |
| 47 | ) |
| 48 | p.add_argument( |
| 49 | "--wrap-tables", |
| 50 | dest="wrap_tables", |
| 51 | action="store_true", |
| 52 | default=config.WRAP_TABLES, |
| 53 | help="wrap tables", |
| 54 | ) |
| 55 | p.add_argument( |
| 56 | "--ignore-emphasis", |
| 57 | dest="ignore_emphasis", |
| 58 | action="store_true", |
| 59 | default=config.IGNORE_EMPHASIS, |
| 60 | help="don't include any formatting for emphasis", |
| 61 | ) |
| 62 | p.add_argument( |
| 63 | "--reference-links", |
| 64 | dest="inline_links", |
no test coverage detected
searching dependent graphs…