MCPcopy Create free account
hub / github.com/Overv/VulkanTutorial / make_parser

Function make_parser

make_parser.py:3–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1import argparse
2
3def 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

Callers 1

mainFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected