Skip to content

Commit

Permalink
Merge pull request #56 from Lekensteyn/fix-stdin
Browse files Browse the repository at this point in the history
Treat '-' file parameter as stdin

Thanks @Lekensteyn
  • Loading branch information
Alir3z4 committed Apr 5, 2015
2 parents cf89ea8 + 2c79945 commit 555f4a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion html2text/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def main():

# process input
encoding = "utf-8"
if len(args) > 0:
if len(args) > 0 and args[0] != '-':
file_ = args[0]
if len(args) == 2:
encoding = args[1]
Expand Down

0 comments on commit 555f4a9

Please sign in to comment.