From 8d2eeb64727f9771c90af6f50b1fdc7c2dfd8e1f Mon Sep 17 00:00:00 2001 From: Elaina Date: Wed, 25 Sep 2024 17:59:23 +0800 Subject: [PATCH] sistana: always create track for option --- src/arclet/alconna/sistana/model/pattern.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/arclet/alconna/sistana/model/pattern.py b/src/arclet/alconna/sistana/model/pattern.py index 0565a2fa..c0ef80bb 100644 --- a/src/arclet/alconna/sistana/model/pattern.py +++ b/src/arclet/alconna/sistana/model/pattern.py @@ -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 [])])