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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user