klattimer / LGWebOSRemote

Command line webOS remote for LGTVs
MIT License
490 stars 97 forks source link

Using ArgumentParser for easy command line usage #128

Closed gravmatt closed 7 months ago

gravmatt commented 10 months ago

With ArgumentParser it's also easier to add new function to the command line without to mess up or break the args position. Like the ssl parameter is now position independent.

lgtv -n mytv --ssl startApp netflix
# or 
lgtv -n mytv startApp netflix --ssl

Both lines work. Get help text and usage: lgtv -h

klattimer commented 7 months ago

I appreciate this, I wanted to do this myself initially but I was also in a rush and then haven't had any time to work on it. Thank you merging now.