Skip to content

Commit

Permalink
Update parser.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyerunix authored Jul 6, 2024
1 parent fd11d76 commit d7bc303
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pash_annotations/parser/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ def parse(command) -> CommandInvocationInitial:
i = 1
while i < len(parsed_elements_list):
potential_flag_or_option = parsed_elements_list[i]
if potential_flag_or_option == '': # empty string counts as an operand
break
if potential_flag_or_option in set_of_all_flags:
flag_name_as_string: str = dict_flag_to_primary_repr.get(potential_flag_or_option, potential_flag_or_option)
flag: Flag = Flag(flag_name_as_string)
Expand Down

0 comments on commit d7bc303

Please sign in to comment.