| 1 | import argparse |
| 2 | |
| 3 | def make_parser() -> argparse.ArgumentParser: |
| 4 | parser = argparse.ArgumentParser( |
| 5 | description="Build the pdf and epub files of the Vulkan Tutorial." |
| 6 | ) |
| 7 | |
| 8 | parser.add_argument( |
| 9 | "--geometry:left", |
| 10 | type=str, |
| 11 | required=False, |
| 12 | default="2.5cm", |
| 13 | help="Specify left margin space as a string. Example: 2cm.", |
| 14 | ) |
| 15 | parser.add_argument( |
| 16 | "--geometry:right", |
| 17 | type=str, |
| 18 | required=False, |
| 19 | default="2.5cm", |
| 20 | help="Specify right margin space as a string. Example: 2cm.", |
| 21 | ) |
| 22 | parser.add_argument( |
| 23 | "--geometry:top", |
| 24 | type=str, |
| 25 | required=False, |
| 26 | default="2.5cm", |
| 27 | help="Specify top margin space as a string. Example: 2cm.", |
| 28 | ) |
| 29 | parser.add_argument( |
| 30 | "--geometry:bottom", |
| 31 | type=str, |
| 32 | required=False, |
| 33 | default="2.5cm", |
| 34 | help="Specify bottom margin space as a string. Example: 2cm.", |
| 35 | ) |
| 36 | |
| 37 | return parser |