cafce25 / twitchctl

Twitch cli
6 stars 1 forks source link

Use structopt for cli options #12

Closed hardliner66 closed 3 years ago

hardliner66 commented 3 years ago

This makes the cli handling more type safe and should simplify adding new arguments.

I also added the base support for generating shell completions. Currently it generates the completion files into a specified directory (default: ./completions). I currently haven't added any documentation for it, because i still want to do a few tests and improve the generation (e.g.: auto detect the correct directory for the chosen shell).

hardliner66 commented 3 years ago

I added a few help/about strings and renamed some properties. I also added options for search. The filter (renamed from search_string) is now positional, as it fits better with the intended use case. (Thanks for the input @cafce25).