We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a5c765 commit d4e30f7Copy full SHA for d4e30f7
1 file changed
utility/lf_arg_parser/src/lf_arg_parser.py
@@ -2,9 +2,19 @@
2
# Licensed under the MIT License. See LICENSE in the project root for license information.
3
4
import sys
5
+from typing import List, Dict
6
7
-def get_argument_map(argument_list):
8
+def get_argument_map(argument_list: List[str]) -> Dict[str, str]:
9
+ """
10
+ Parses the argument list and returns a dictionary of key-value pairs.
11
+
12
+ :param argument_list: A list of command-line arguments.
13
+ :type argument_list: list[str]
14
+ :return: A dictionary of key-value pairs representing the parsed arguments.
15
+ :rtype: dict[str, str]
16
+ :raises Exception: If the argument list is invalid.
17
18
argument_map = {}
19
if argument_list is None:
20
raise Exception("Invalid arguments.")
0 commit comments