alexmojaki / birdseye

Graphical Python debugger which lets you easily view the values of all evaluated expressions
https://birdseye.readthedocs.io
MIT License
1.65k stars 72 forks source link

add argparse to handle command line parameters #58

Closed houluy closed 6 years ago

houluy commented 6 years ago

Hi, I've add argparse in birdseye/server.py to handle command line parameters, which for now are host and port for web service. This is an insignificant modify but I do think it's helpful for the people who like to writing their codes over the clouds (where they can hardly open a browser to debug because they are totally command-line environments).

alexmojaki commented 6 years ago

Thanks for doing this, I've been meaning to especially as I'm also about to add some more optional arguments myself. It's great to get some help as I get very few contributions. The code is mostly good, I just have some very minor requests.

I'm curious, do you find yourself debugging things on a remote server and wanting to set --host=0.0.0.0?

houluy commented 6 years ago

Exactly. I always write things on a remote server via ssh. localhost is a little inconvenient for me so I made this pull request :)

alexmojaki commented 6 years ago

Great, thanks! This will probably be released soon.

alexmojaki commented 6 years ago

It's released, you can pip install -U birdseye. Thanks again and consider contributing more in the future.