Skip to content

Commit d4e30f7

Browse files
committed
more comments
1 parent 9a5c765 commit d4e30f7

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

utility/lf_arg_parser/src/lf_arg_parser.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,19 @@
22
# Licensed under the MIT License. See LICENSE in the project root for license information.
33

44
import sys
5+
from typing import List, Dict
56

67

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+
"""
818
argument_map = {}
919
if argument_list is None:
1020
raise Exception("Invalid arguments.")

0 commit comments

Comments
 (0)