-
Notifications
You must be signed in to change notification settings - Fork 570
Expand file tree
/
Copy pathmake_parser.py
More file actions
37 lines (34 loc) · 982 Bytes
/
make_parser.py
File metadata and controls
37 lines (34 loc) · 982 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import argparse
def make_parser() -> argparse.ArgumentParser:
parser = argparse.ArgumentParser(
description="Build the pdf and epub files of the Vulkan Tutorial."
)
parser.add_argument(
"--geometry:left",
type=str,
required=False,
default="2.5cm",
help="Specify left margin space as a string. Example: 2cm.",
)
parser.add_argument(
"--geometry:right",
type=str,
required=False,
default="2.5cm",
help="Specify right margin space as a string. Example: 2cm.",
)
parser.add_argument(
"--geometry:top",
type=str,
required=False,
default="2.5cm",
help="Specify top margin space as a string. Example: 2cm.",
)
parser.add_argument(
"--geometry:bottom",
type=str,
required=False,
default="2.5cm",
help="Specify bottom margin space as a string. Example: 2cm.",
)
return parser