Skip to content

Commit

Permalink
Print docs if args weren't given to pydiode
Browse files Browse the repository at this point in the history
For #3
  • Loading branch information
peterstory committed Aug 1, 2023
1 parent 22a3af5 commit 63923a3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pydiode/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ async def async_main():
),
)
# If we are receiving data
else:
elif "read_ip" in args:
loop = asyncio.get_running_loop()
exit_code = loop.create_future()
queue = asyncio.Queue()
Expand All @@ -142,6 +142,8 @@ async def async_main():
)
await exit_code
exit(exit_code.result())
else:
parser.print_help()


def main():
Expand Down

0 comments on commit 63923a3

Please sign in to comment.