Skip to content

Commit

Permalink
more comments
Browse files Browse the repository at this point in the history
  • Loading branch information
kern-ding committed Oct 16, 2023
1 parent 9a5c765 commit d4e30f7
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion utility/lf_arg_parser/src/lf_arg_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,19 @@
# Licensed under the MIT License. See LICENSE in the project root for license information.

import sys
from typing import List, Dict


def get_argument_map(argument_list):
def get_argument_map(argument_list: List[str]) -> Dict[str, str]:
"""
Parses the argument list and returns a dictionary of key-value pairs.
:param argument_list: A list of command-line arguments.
:type argument_list: list[str]
:return: A dictionary of key-value pairs representing the parsed arguments.
:rtype: dict[str, str]
:raises Exception: If the argument list is invalid.
"""
argument_map = {}
if argument_list is None:
raise Exception("Invalid arguments.")
Expand Down

0 comments on commit d4e30f7

Please sign in to comment.