Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanups and argparse #12

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

plars
Copy link

@plars plars commented Feb 5, 2025

  • Some pep8 cleanups
  • use argparse so that user gets a nice help message instead of silently failing

Hi Alan! not sure if you are interested in contributions for this, but I noticed that when you run it with no args that you get nothing back. So I added argparse, along with a few other cleanups and such, so that you get a help message in case you forget to specify args.
I noticed that it looks like you were also trying to add support for streaming a json file to it through a pipe, but it didn't look functional yet. I tried see if I could get it working, but it seems to get confused, since stdin is reading from the file pipe and then later needs to read from the tty for the TUI. Didn't sort out a fix yet so I skipped it for now, since there's no loss in functionality, but if it's critical then I could possibly take a stab at it again later.

* Some pep8 cleanups
* use argparse so that user gets a nice help message instead of silently
  failing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant