cmm: replaced options '--with-tags' and '--with-file' with '--with-metadata'

This commit is contained in:
2023-10-01 10:11:16 +02:00
parent e4cb6eb22b
commit 8f56399844
7 changed files with 24 additions and 15 deletions
+2 -2
View File
@@ -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: