muammar / mkchromecast

Cast macOS and Linux Audio/Video to your Google Cast and Sonos Devices
http://mkchromecast.com
Other
2.22k stars 140 forks source link

Factors argument parsing out into its own module #427

Closed xsdg closed 11 months ago

xsdg commented 11 months ago

This is a temporary step; the parser will eventually end up in bin/mkchromecast, since it defines the command-line interface.

xsdg commented 11 months ago

I tested this by doing steps similar to this (in debian, from the top-level mkchromecast/ directory):

$ mkdir /tmp/pyenv
$ python3 -m venv /tmp/pyenv
$ /tmp/pyenv/bin/pip install <mkchromecast dependencies>
$ python3 setup.py bdist_wheel
$ /tmp/pyenv/bin/pip install dist/mkchromecast-0.3.9-py3-none-any.whl
$ source /tmp/pyenv/bin/activate
$ mkchromecast --help  # To make sure options are listed as expected
$ mkchromecast -d  # To make sure options are used by mkchromecast as expected
$ deactivate

The options were listed as expected, and mkchromecast -d succeeded in listing my Chromecast device.