Change default start_index in get_remaining to 0

Updated the get_remaining method in CommandArgs to default start_index to 0 instead of 1, ensuring all arguments are included by default when retrieving remaining parameters.
This commit is contained in:
雅诺狐
2025-08-28 18:42:04 +08:00
parent 58f775fbdd
commit b28116e17b

View File

@@ -87,7 +87,7 @@ class CommandArgs:
"""
return self.get_arg(0, default)
def get_remaining(self, start_index: int = 1) -> str:
def get_remaining(self, start_index: int = 0) -> str:
"""获取从指定索引开始的剩余参数字符串
Args: