Skip to content

Commit

Permalink
sistana: always create track for option
Browse files Browse the repository at this point in the history
  • Loading branch information
GreyElaina committed Sep 25, 2024
1 parent f67de0b commit 8d2eeb6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/arclet/alconna/sistana/model/pattern.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,7 @@ def option(
for alias in aliases:
self.options[alias] = pattern

if fragments:
self.add_track(keyword, fragments, header=header_fragment)
self.add_track(keyword, fragments, header=header_fragment)

if compact_header:
self.compact_keywords = TrieHard([keyword, *aliases, *(self.compact_keywords or []), *(aliases if compact_aliases else [])])
Expand Down

0 comments on commit 8d2eeb6

Please sign in to comment.