-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathutils.py
More file actions
29 lines (26 loc) · 708 Bytes
/
utils.py
File metadata and controls
29 lines (26 loc) · 708 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
#!/usr/bin/env python
from argparse import ArgumentParser
def create_parser() -> ArgumentParser:
parser = ArgumentParser(description="Emoji app")
parser.add_argument(
"--n",
default=1,
type=int,
required=False,
help="Multiply number of emojis by n (int, default: 1)",
)
parser.add_argument(
"--s",
default="",
type=str,
required=False,
help="Separator between each emoji (str, default: '')",
)
parser.add_argument(
"--r",
default=False,
type=bool,
required=False,
help="Disable translation from keyword to emoji (bool, default: False)",
)
return parser