-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathparser.py
More file actions
30 lines (28 loc) · 758 Bytes
/
parser.py
File metadata and controls
30 lines (28 loc) · 758 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
import argparse
def parse_args():
parser = argparse.ArgumentParser(description="Update mods using the Modrinth API.")
parser.add_argument(
"-p",
"--path",
default="./mods/",
required=False,
type=str,
help="Path where to update mods(default: ./mods/).",
)
parser.add_argument(
"-v",
"--version",
default="latest",
required=False,
type=str,
help="The version of the mod to download. Example: 1.21.1 (default: latest)",
)
parser.add_argument(
"-l",
"--loader",
default="fabric",
required=False,
type=str,
help="The mod loader to use. (default: fabric)",
)
return parser.parse_args()