Skip to content

Commit

Permalink
Accept - as a valid input parameter (#319)
Browse files Browse the repository at this point in the history
We won't do the same for the output parameter as it is the default
behavior when --write-media is not set.

Closes: #216

Signed-off-by: rany <[email protected]>
  • Loading branch information
rany2 authored Nov 22, 2024
1 parent 6bc3a9e commit 48c7f3a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/edge_tts/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,7 @@ async def amain() -> None:
sys.exit(0)

if args.file is not None:
# we need to use sys.stdin.read() because some devices
# like Windows and Termux don't have a /dev/stdin.
if args.file == "/dev/stdin":
if args.file in ("-", "/dev/stdin"):
args.text = sys.stdin.read()
else:
with open(args.file, "r", encoding="utf-8") as file:
Expand Down

0 comments on commit 48c7f3a

Please sign in to comment.