Skip to content

Commit 7d15d2c

Browse files
uunnxxacuteenvy
andauthored
fix: return str instead of list when executing tldr -l (#222)
* fix: return `str` instead of `list` when executing `tldr -l` --------- Co-authored-by: Lena <[email protected]>
1 parent 986df33 commit 7d15d2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tldr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ def main() -> None:
504504
parser.print_help(sys.stderr)
505505
sys.exit(1)
506506
if options.list:
507-
print(get_commands(options.platform))
507+
print('\n'.join(get_commands(options.platform)))
508508
elif options.render:
509509
for command in options.command:
510510
if os.path.exists(command):

0 commit comments

Comments
 (0)