cmm: replaced options '--with-tags' and '--with-file' with '--with-metadata'
This commit is contained in:
@@ -255,14 +255,14 @@ class Chat:
|
||||
return sum(m.tokens() for m in self.messages)
|
||||
|
||||
def print(self, source_code_only: bool = False,
|
||||
with_tags: bool = False, with_files: bool = False,
|
||||
with_metadata: bool = False,
|
||||
paged: bool = True) -> None:
|
||||
output: list[str] = []
|
||||
for message in self.messages:
|
||||
if source_code_only:
|
||||
output.append(message.to_str(source_code_only=True))
|
||||
continue
|
||||
output.append(message.to_str(with_tags, with_files))
|
||||
output.append(message.to_str(with_metadata))
|
||||
if paged:
|
||||
print_paged('\n'.join(output))
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user