We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
--render
1 parent 38fe118 commit cb63ef4Copy full SHA for cb63ef4
tldr.py
@@ -638,8 +638,9 @@ def main() -> None:
638
print('\n'.join(get_commands(options.platform, options.language)))
639
elif options.render:
640
for command in options.command:
641
- if Path(command).exists():
642
- with command.open(encoding='utf-8') as open_file:
+ file_path = Path(command)
+ if file_path.exists():
643
+ with file_path.open(encoding='utf-8') as open_file:
644
output(open_file.read().encode('utf-8').splitlines(),
645
plain=options.markdown)
646
elif options.search:
0 commit comments